From ad9b34bc7adda9e3c1b73c91f54ca45367a40e62 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 7 Jul 2019 07:52:37 -0400 Subject: [PATCH] Code review of 9d1913a16e91 Also eat backslash for `\\`, to allow searching for literal `\n`, `\t`. --- src/js/codemirror/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/codemirror/search.js b/src/js/codemirror/search.js index 2a63b7582..2cb598db7 100644 --- a/src/js/codemirror/search.js +++ b/src/js/codemirror/search.js @@ -167,6 +167,7 @@ if (ch === "n") return "\n"; if (ch === "r") return "\r"; if (ch === 't') return '\t'; + if (ch === '\\') return '\\'; return _; }); }