diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-10-30 01:47:32 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-10-30 01:47:32 +0000 |
commit | 787c86f68d36fa487daeb7f14adfdbf6e6a01238 (patch) | |
tree | fe51eda08193a3bc5d41830433dafe3052853d24 /Src | |
parent | c109f9f9447920effdfc70f448704d5ab4b8d4c7 (diff) | |
download | zsh-787c86f68d36fa487daeb7f14adfdbf6e6a01238.tar.gz zsh-787c86f68d36fa487daeb7f14adfdbf6e6a01238.tar.xz zsh-787c86f68d36fa487daeb7f14adfdbf6e6a01238.zip |
25949: remove dead code in getvisrchstr.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_hist.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 97b82fdcd..c4dad7617 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -1748,12 +1748,8 @@ getvisrchstr(void) clearscreen(zlenoargs); } else if(cmd == Th(z_acceptline) || cmd == Th(z_vicmdmode)) { - if (sptr) { - sbuf[sptr] = ZWC('\0'); - visrchstr = ztrdup(sbuf+1); - } else { - visrchstr = ztrdup(vipenultsrchstr); - } + sbuf[sptr] = ZWC('\0'); + visrchstr = ztrdup(sbuf+1); ret = 1; sptr = 0; } else if(cmd == Th(z_backwarddeletechar) || |