summaryrefslogtreecommitdiff
path: root/history
diff options
context:
space:
mode:
authorByron Rakitzis <byron@archone.tamu.edu>1994-03-07 00:00:01 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:59 +0100
commit5556dde4d3ad4e34267320b1411fc090b18a24b0 (patch)
tree9d22c48c75bcd778f30cbb2e37b6dff6abb4f1d2 /history
parent26bb34cf036027dfa22dfae8d8fc2f6bfd6acb75 (diff)
beta: rc-1.5betadev1
Diffstat (limited to 'history')
-rw-r--r--history/history.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/history/history.c b/history/history.c
index 5f2cece..e6aa29d 100644
--- a/history/history.c
+++ b/history/history.c
@@ -246,7 +246,7 @@ again: s = last;
/*
* if the command contains the "me" character at the start of the line
- * or after any of [`{|()] then try again
+ * or after any of [`{|()@] then try again
*/
for (t = s; *t != '\0'; t++)
@@ -254,8 +254,16 @@ again: s = last;
char *u = t - 1;
while (u >= s && (*u == ' ' || *u == '\t'))
--u;
- if (u < s || *u == '`' || *u == '{' || *u == '|' || *u == '(' || *u == ')')
+ if (u < s)
goto again;
+ switch (*u) {
+ case '`': case '@':
+ case '(': case ')':
+ case '{': case '|':
+ goto again;
+ default:
+ break;
+ }
}
return s;
}