summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-29 22:23:06 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-29 22:23:06 +0200
commita693d0584b9a7ccce98813dda3a6badb209904c7 (patch)
tree35a41c5739c3ba540acef03966f9e15a95037dab /src/ex_getln.c
parent9c4fefffb65a2ed9b4a5b0f1bde0da8f349470b5 (diff)
downloadvim-git-a693d0584b9a7ccce98813dda3a6badb209904c7.tar.gz
patch 8.0.0689: ~ character not escaped when extending search patternv8.0.0689
Problem: The ~ character is not escaped when adding to the search pattern with CTRL-L. (Ramel Eshed) Solution: Escape the character. (Christian Brabandt)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index ba8fde65e..11de136bf 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1492,7 +1492,7 @@ getcmdline(
if (c != NUL)
{
if (c == firstc || vim_strchr((char_u *)(
- p_magic ? "\\^$.*[" : "\\^$"), c)
+ p_magic ? "\\~^$.*[" : "\\^$"), c)
!= NULL)
{
/* put a backslash before special