projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1289237
)
Fixed the hack for zsh history
author
Francois Fleuret
<francois@fleuret.org>
Fri, 13 Mar 2009 10:00:02 +0000
(11:00 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Fri, 13 Mar 2009 10:00:02 +0000
(11:00 +0100)
selector.cc
patch
|
blob
|
history
diff --git
a/selector.cc
b/selector.cc
index
4347e51
..
0884477
100644
(file)
--- 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);