diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-03-26 08:58:33 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-03-26 08:58:33 +0000 |
| commit | 4e994fddced06b279f445c2919df3dc60fb0306f (patch) | |
| tree | c941f114e1d792b599fb2df40dd4da80512a3df0 | |
| parent | _pids shouldn't start menu completion if the current word starts with a hyphe... (diff) | |
| download | zsh-4e994fddced06b279f445c2919df3dc60fb0306f.tar zsh-4e994fddced06b279f445c2919df3dc60fb0306f.tar.gz zsh-4e994fddced06b279f445c2919df3dc60fb0306f.tar.bz2 zsh-4e994fddced06b279f445c2919df3dc60fb0306f.tar.lz zsh-4e994fddced06b279f445c2919df3dc60fb0306f.tar.xz zsh-4e994fddced06b279f445c2919df3dc60fb0306f.tar.zst zsh-4e994fddced06b279f445c2919df3dc60fb0306f.zip | |
avoid adding empty strings to the kill ring (13767)
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | Src/Zle/zle_utils.c | 3 |
2 files changed, 8 insertions, 2 deletions
@@ -1,8 +1,11 @@ 2001-03-26 Sven Wischnowsky <wischnow@zsh.org> + * 13767: Src/Zle/zle_utils.c: avoid adding empty strings to + the kill ring + * 13763: Completion/Builtins/_pids, Doc/Zsh/compsys.yo: _pids - * shouldn't start menu completion if the current word starts - * with a hyphen; typo fix in compsys.yo + shouldn't start menu completion if the current word starts + with a hyphen; typo fix in compsys.yo 2001-03-25 Bart Schaefer <schaefer@zsh.org> diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 5de9b331d..107ff37ec 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -128,6 +128,9 @@ forekill(int ct, int dir) void cut(int i, int ct, int dir) { + if (!ct) + return; + if (zmod.flags & MOD_VIBUF) { struct cutbuffer *b = &vibuf[zmod.vibuf]; |
