X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.cc;h=0884477098947454448470e22d9674f117f2d0eb;hb=b376894273ad07cae4489e3d219b8fef7cd00da7;hp=13eb43a465f0977afd669a7e67124a02618b0c7b;hpb=41927c77cc6c56eff6a76a646a8ab4d315c90b1b;p=selector.git diff --git a/selector.cc b/selector.cc index 13eb43a..0884477 100644 --- a/selector.cc +++ b/selector.cc @@ -447,7 +447,8 @@ int main(int argc, char **argv) { char *s = buffer; if(zsh_history && *s == ':') { s++; - while(*s && *s != ':') s++; + while(*s && *s != ';') s++; + if(*s == ';') s++; } lines[nb_lines] = new char[strlen(s) + 1]; strcpy(lines[nb_lines], s);