diff options
author | nicm <nicm> | 2017-01-06 11:57:03 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-01-06 11:57:03 +0000 |
commit | 461217d0f0b347b688d6f41dcc997b984951aac1 (patch) | |
tree | e3a08fd8b85a632ab0e66e22e022e0b09ca59b13 /cmd.c | |
parent | 9a56671a7565322142b9871c5fe1d945ce200b9a (diff) | |
download | rtmux-461217d0f0b347b688d6f41dcc997b984951aac1.tar.gz rtmux-461217d0f0b347b688d6f41dcc997b984951aac1.tar.bz2 rtmux-461217d0f0b347b688d6f41dcc997b984951aac1.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |