summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-03-08 18:57:53 -0300
committerdequis <dx@dxzone.com.ar>2017-03-08 20:01:05 -0300
commit93c158d8156293bd95e4bf5bdb75cf8d44bc4eab (patch)
tree111742f8fba812fa9e3b79257d020ad300d1b0dd
parentd57c64adeb7b251c5347212239ed0d7b7abe5547 (diff)
downloadirssi-93c158d8156293bd95e4bf5bdb75cf8d44bc4eab.zip
expand_escape: expand double backslash as a backslash
-rw-r--r--src/core/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index 1cfa15b6..d8437430 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -690,6 +690,8 @@ int expand_escape(const char **data)
return '\n';
case 'e':
return 27; /* ESC */
+ case '\\':
+ return '\\';
case 'x':
/* hex digit */