summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-01 11:59:47 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-01 11:59:47 +0200
commit1d90a5a5af84250e226f8a9121e771f7b72aa894 (patch)
treea389742a425e6f06966959bd744c96c3a4f296a3 /src/misc2.c
parent6747fabc7348bf5f41ccfe851e2be3e900ec8ee0 (diff)
downloadvim-git-1d90a5a5af84250e226f8a9121e771f7b72aa894.tar.gz
patch 7.4.1968v7.4.1968
Problem: Invalid memory access with "\<C-">. Solution: Do not recognize this as a special character. (Dominique Pelle)
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 1018e4b06..397799ad8 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -2741,8 +2741,10 @@ find_special_key(
else
#endif
l = 1;
- if (bp[l + 1] == '>')
- bp += l; /* anything accepted, like <C-?> */
+ /* Anything accepted, like <C-?>, except <C-">, because the "
+ * ends the string. */
+ if (bp[l] != '"' && bp[l + 1] == '>')
+ bp += l;
}
}
if (bp[0] == 't' && bp[1] == '_' && bp[2] && bp[3])