summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2017-01-06 11:57:03 +0000
committernicm <nicm@openbsd.org>2017-01-06 11:57:03 +0000
commitedd3b07901e18abfc9dfb4ae20eef8b501ca17fa (patch)
treeb19bfabc14d3d35584d3f0919b8a5037acd53600 /usr.bin/tmux/cmd.c
parentKill various splsoftnet(). (diff)
downloadwireguard-openbsd-edd3b07901e18abfc9dfb4ae20eef8b501ca17fa.tar.xz
wireguard-openbsd-edd3b07901e18abfc9dfb4ae20eef8b501ca17fa.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 'usr.bin/tmux/cmd.c')
-rw-r--r--usr.bin/tmux/cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c
index 3c6df33e091..d5f325fa0f8 100644
--- a/usr.bin/tmux/cmd.c
+++ b/usr.bin/tmux/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.129 2016/12/28 10:34:34 nicm Exp $ */
+/* $OpenBSD: cmd.c,v 1.130 2017/01/06 11:57:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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;
}