summaryrefslogtreecommitdiffstats
path: root/cmd.c
diff options
context:
space:
mode:
authornicm <nicm>2017-01-06 11:57:03 +0000
committernicm <nicm>2017-01-06 11:57:03 +0000
commit461217d0f0b347b688d6f41dcc997b984951aac1 (patch)
treee3a08fd8b85a632ab0e66e22e022e0b09ca59b13 /cmd.c
parent9a56671a7565322142b9871c5fe1d945ce200b9a (diff)
Incremental search in copy mode (on for emacs keys by default) - much
the same as normal searching but updates the cursor position and marked search terms as you type. C-r and C-s in the prompt repeat the search, once finished searching (with Enter), N and n work as before.
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index 08242920..9791bee7 100644
--- a/cmd.c
+++ b/cmd.c
@@ -692,7 +692,7 @@ cmd_template_replace(const char *template, const char *s, int idx)
buf = xrealloc(buf, len + (strlen(s) * 2) + 1);
for (cp = s; *cp != '\0'; cp++) {
- if (quoted && *cp == '"')
+ if (quoted && (*cp == '"' || *cp == '$'))
buf[len++] = '\\';
buf[len++] = *cp;
}