diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2003-07-29 09:53:26 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2003-07-29 09:53:26 +0000 |
commit | 1495a7e008a8f7b80df2a2ce8319710a182e4bd5 (patch) | |
tree | 5946066aaecac0f0f9149b432fd8ebb9d521384d /Src/Zle | |
parent | 0f080f741cb1a1402e87e6516af92601bff0fccd (diff) | |
download | zsh-1495a7e008a8f7b80df2a2ce8319710a182e4bd5.tar.gz zsh-1495a7e008a8f7b80df2a2ce8319710a182e4bd5.tar.xz zsh-1495a7e008a8f7b80df2a2ce8319710a182e4bd5.zip |
Don't crash if alt-y is typed twice in a row without a prior ctrl-y.
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/zle_misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c index 4a5c6c5c2..89c8b8229 100644 --- a/Src/Zle/zle_misc.c +++ b/Src/Zle/zle_misc.c @@ -372,8 +372,10 @@ yankpop(char **args) int cc, kctstart = kct; Cutbuffer buf; - if (!(lastcmd & ZLE_YANK) || !kring) + if (!(lastcmd & ZLE_YANK) || !kring || !kctbuf) { + kctbuf = NULL; return 1; + } do { /* * This is supposed to make the yankpop loop |