From 461217d0f0b347b688d6f41dcc997b984951aac1 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 6 Jan 2017 11:57:03 +0000 Subject: 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. --- cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd.c') 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; } -- cgit