1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-09 12:21:14 +02:00

25949: remove dead code in getvisrchstr.

This commit is contained in:
Clint Adams 2008-10-30 01:47:32 +00:00
parent c109f9f944
commit 787c86f68d
2 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2008-10-30 Clint Adams <clint@zsh.org>
* 25949: Src/Zle/zle_hist.c: remove dead code in getvisrchstr.
2008-10-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 25945: Completion/Unix/Type/_path_files: need some extra

View file

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