* PATCH: dead code in getvisrchstr
@ 2008-10-30 1:45 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-10-30 1:45 UTC (permalink / raw)
To: zsh-workers
This is in a while(sptr) loop.
Index: Src/Zle/zle_hist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_hist.c,v
retrieving revision 1.58
diff -u -r1.58 zle_hist.c
--- Src/Zle/zle_hist.c 18 Sep 2008 20:35:40 -0000 1.58
+++ Src/Zle/zle_hist.c 30 Oct 2008 01:41:40 -0000
@@ -1748,12 +1748,8 @@
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) ||
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-30 1:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 1:45 PATCH: dead code in getvisrchstr Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).