From b376894273ad07cae4489e3d219b8fef7cd00da7 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 13 Mar 2009 11:00:02 +0100 Subject: [PATCH] Fixed the hack for zsh history --- selector.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selector.cc b/selector.cc index 4347e51..0884477 100644 --- a/selector.cc +++ b/selector.cc @@ -447,8 +447,8 @@ int main(int argc, char **argv) { char *s = buffer; if(zsh_history && *s == ':') { s++; - while(*s && *s != ':') s++; - if(*s == ':') s++; + while(*s && *s != ';') s++; + if(*s == ';') s++; } lines[nb_lines] = new char[strlen(s) + 1]; strcpy(lines[nb_lines], s); -- 2.39.5