aboutsummaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tag.c b/src/tag.c
index e5317b41b3..2df02752cc 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -645,9 +645,11 @@ do_tag (
break;
msg_advance(15);
- /* skip backslash used for escaping command char */
- if (*p == '\\' && *(p + 1) == *tagp.command)
+ // Skip backslash used for escaping a command char or a backslash.
+ if (*p == '\\' && (*(p + 1) == *tagp.command
+ || *(p + 1) == '\\')) {
++p;
+ }
if (*p == TAB) {
msg_putchar(' ');