mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +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'
|
||||
fi
|
||||
compgen "$expl[@]" -Q -H 0 ''
|
||||
compstate[insert]=1
|
||||
if [[ -n "$compconfig[history_stop]" ]]; then
|
||||
compstate[insert]=1
|
||||
_hist_menu_length="$compstate[nmatches]"
|
||||
_hist_menu_end=''
|
||||
fi
|
||||
|
|
|
@ -6932,7 +6932,7 @@ makecomplistflags(Compctl cc, char *s, int incmd, int compadd)
|
|||
/* Now search the history. */
|
||||
while (n-- && he) {
|
||||
int iwords;
|
||||
for (iwords = 0; iwords < he->nwords; iwords++) {
|
||||
for (iwords = he->nwords - 1; iwords >= 0; iwords--) {
|
||||
h = he->text + he->words[iwords*2];
|
||||
e = he->text + he->words[iwords*2+1];
|
||||
hpatsav = *e;
|
||||
|
|
Loading…
Reference in a new issue