1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +02:00

zsh-workers/8015

This commit is contained in:
Tanaka Akira 1999-09-23 13:12:44 +00:00
parent d293470f7a
commit 679eca1369
2 changed files with 2 additions and 2 deletions

View file

@ -23,8 +23,8 @@ else
_description -V expl 'history word' _description -V expl 'history word'
fi fi
compgen "$expl[@]" -Q -H 0 '' compgen "$expl[@]" -Q -H 0 ''
compstate[insert]=1
if [[ -n "$compconfig[history_stop]" ]]; then if [[ -n "$compconfig[history_stop]" ]]; then
compstate[insert]=1
_hist_menu_length="$compstate[nmatches]" _hist_menu_length="$compstate[nmatches]"
_hist_menu_end='' _hist_menu_end=''
fi fi

View file

@ -6932,7 +6932,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
/* Now search the history. */ /* Now search the history. */
while (n-- && he) { while (n-- && he) {
int iwords; int iwords;
for (iwords = 0; iwords < he->nwords; iwords++) { for (iwords = he->nwords - 1; iwords >= 0; iwords--) {
h = he->text + he->words[iwords*2]; h = he->text + he->words[iwords*2];
e = he->text + he->words[iwords*2+1]; e = he->text + he->words[iwords*2+1];
hpatsav = *e; hpatsav = *e;