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