diff options
author | Andrey Borzenkov <bor@users.sourceforge.net> | 2009-01-09 20:54:35 +0000 |
---|---|---|
committer | Andrey Borzenkov <bor@users.sourceforge.net> | 2009-01-09 20:54:35 +0000 |
commit | 1a43616975310a638f76ba4f5e73757e4b071a1f (patch) | |
tree | 6f9fb10b571018ab8e3ba3d3af5286a18c2f098d /Src/Zle/complete.c | |
parent | 369a03d09f1661ea92509dde0e1c45fcc9620adb (diff) | |
download | zsh-1a43616975310a638f76ba4f5e73757e4b071a1f.tar.gz zsh-1a43616975310a638f76ba4f5e73757e4b071a1f.tar.xz zsh-1a43616975310a638f76ba4f5e73757e4b071a1f.zip |
26270: allow accept-and-menu-complete work with _vallues as well
Diffstat (limited to 'Src/Zle/complete.c')
-rw-r--r-- | Src/Zle/complete.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/complete.c b/Src/Zle/complete.c index 6398fd3e7..7dbae1dee 100644 --- a/Src/Zle/complete.c +++ b/Src/Zle/complete.c @@ -38,6 +38,7 @@ zlong compcurrent, complistmax; /**/ zlong complistlines, + complistinword, compignored; /**/ @@ -1146,6 +1147,7 @@ static struct compparam compkparams[] = { GSU(unambig_pos_gsu) }, { "insert_positions", PM_SCALAR | PM_READONLY, NULL, GSU(insert_pos_gsu) }, + { "list_in_word", PM_INTEGER, VAL(complistinword), NULL }, { "list_max", PM_INTEGER, VAL(complistmax), NULL }, { "last_prompt", PM_SCALAR, VAL(complastprompt), NULL }, { "to_end", PM_SCALAR, VAL(comptoend), NULL }, @@ -1596,7 +1598,7 @@ setup_(UNUSED(Module m)) compvared = compqstack = NULL; complastprefix = ztrdup(""); complastsuffix = ztrdup(""); - complistmax = 0; + complistmax = complistinword = 0; hascompmod = 1; return 0; |