summaryrefslogtreecommitdiff
path: root/Src/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/hist.c')
-rw-r--r--Src/hist.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 80c5f1752..7f52ee08b 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -638,6 +638,13 @@ histsubchar(int c)
return -1;
}
break;
+ case 'c':
+ if (!(sline = equalsubstr(sline, 0, 0))) {
+ herrflush();
+ zerr("modifier failed: c");
+ return -1;
+ }
+ break;
case 'h':
if (!remtpath(&sline)) {
herrflush();