mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
addx() inserts x more often (10621)
This commit is contained in:
parent
802ae96cf9
commit
fc43f74334
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2000-04-10 Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
|
||||
|
||||
* 10621: Src/Zle/zle_tricky.c: addx() inserts x more often
|
||||
|
||||
* 10620: Src/exec.c: properly restore scriptname in doshfunc()
|
||||
|
||||
* users/3019: Completion/Core/_path_files: use special-dirs with
|
||||
|
|
|
@ -790,7 +790,8 @@ addx(char **ptmp)
|
|||
|
||||
if (!line[cs] || line[cs] == '\n' ||
|
||||
(iblank(line[cs]) && (!cs || line[cs-1] != '\\')) ||
|
||||
line[cs] == ')' || line[cs] == '`' ||
|
||||
line[cs] == ')' || line[cs] == '`' || line[cs] == '}' ||
|
||||
line[cs] == ';' || line[cs] == '|' || line[cs] == '&' ||
|
||||
(instring && (line[cs] == '"' || line[cs] == '\'')) ||
|
||||
(addspace = (comppref && !iblank(line[cs])))) {
|
||||
*ptmp = (char *)line;
|
||||
|
|
Loading…
Reference in a new issue