From: Francois Fleuret Date: Fri, 13 Mar 2009 10:00:02 +0000 (+0100) Subject: Fixed the hack for zsh history X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=b376894273ad07cae4489e3d219b8fef7cd00da7;p=selector.git Fixed the hack for zsh history --- 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);