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:
parent
d293470f7a
commit
679eca1369
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue