mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 00:31:07 +02:00
25949: remove dead code in getvisrchstr.
This commit is contained in:
parent
c109f9f944
commit
787c86f68d
2 changed files with 6 additions and 6 deletions
|
@ -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>
|
2008-10-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* 25945: Completion/Unix/Type/_path_files: need some extra
|
* 25945: Completion/Unix/Type/_path_files: need some extra
|
||||||
|
|
|
@ -1748,12 +1748,8 @@ getvisrchstr(void)
|
||||||
clearscreen(zlenoargs);
|
clearscreen(zlenoargs);
|
||||||
} else if(cmd == Th(z_acceptline) ||
|
} else if(cmd == Th(z_acceptline) ||
|
||||||
cmd == Th(z_vicmdmode)) {
|
cmd == Th(z_vicmdmode)) {
|
||||||
if (sptr) {
|
sbuf[sptr] = ZWC('\0');
|
||||||
sbuf[sptr] = ZWC('\0');
|
visrchstr = ztrdup(sbuf+1);
|
||||||
visrchstr = ztrdup(sbuf+1);
|
|
||||||
} else {
|
|
||||||
visrchstr = ztrdup(vipenultsrchstr);
|
|
||||||
}
|
|
||||||
ret = 1;
|
ret = 1;
|
||||||
sptr = 0;
|
sptr = 0;
|
||||||
} else if(cmd == Th(z_backwarddeletechar) ||
|
} else if(cmd == Th(z_backwarddeletechar) ||
|
||||||
|
|
Loading…
Reference in a new issue