1
0
Fork 0
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:
Peter Stephenson 2003-01-13 10:32:03 +00:00
parent 5e7520de01
commit 1e7c463fd9
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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))