aboutsummaryrefslogtreecommitdiff
path: root/common/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/search.c')
-rw-r--r--common/search.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/common/search.c b/common/search.c
index e8dcac431f51..c3f7291437ff 100644
--- a/common/search.c
+++ b/common/search.c
@@ -103,9 +103,14 @@ prev: if (sp->re == NULL) {
++p;
break;
}
- if (plen > 1 && p[0] == '\\' && p[1] == delim) {
- ++p;
- --plen;
+ if (plen > 1 && p[0] == '\\') {
+ if (p[1] == delim) {
+ ++p;
+ --plen;
+ } else if ( p[1] == '\\') {
+ *t++ = *p++;
+ --plen;
+ }
}
}
if (epp != NULL)