mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
18059: allow compadd -r and -R with default space suffix
This commit is contained in:
parent
5e7520de01
commit
1e7c463fd9
2 changed files with 5 additions and 1 deletions
|
@ -575,6 +575,10 @@ suffix if the next character typed inserts anything but a digit. One extra
|
|||
backslash sequence is understood in this string: `tt(\-)' stands for
|
||||
all characters that insert nothing. Thus `tt(-S "=" -q)' is the same
|
||||
as `tt(-S "=" -r "= \t\n\-")'.
|
||||
|
||||
This option may also be used without the tt(-S) option; then any
|
||||
automatically added space will be removed when one of the characters in the
|
||||
list is typed.
|
||||
)
|
||||
item(tt(-R) var(remove-func))(
|
||||
This is another form of the tt(-r) option. When a suffix
|
||||
|
|
|
@ -1114,7 +1114,7 @@ do_single(Cmatch m)
|
|||
inststrlen(" ", 1, 1);
|
||||
minfo.insc++;
|
||||
if (minfo.we)
|
||||
makesuffix(1);
|
||||
makesuffixstr(m->remf, m->rems, 1);
|
||||
}
|
||||
}
|
||||
if (minfo.we && partest && isset(AUTOPARAMKEYS))
|
||||
|
|
Loading…
Reference in a new issue