This commit is contained in:
Justin M. Keyes
2017-07-08 16:17:21 +02:00
parent 0b88bf256d
commit 829e1f2c43
3 changed files with 31 additions and 31 deletions

View File

@@ -817,7 +817,7 @@ char_u *replace_termcodes(const char_u *from, const size_t from_len,
while (src <= end) {
// Check for special <> keycodes, like "<C-S-LeftMouse>"
if (special && (do_lt || ((end - src) >= 3
&& STRNCMP(src, "<lt>", 4) != 0))) {
&& STRNCMP(src, "<lt>", 4) != 0))) {
// Replace <SID> by K_SNR <script-nr> _.
// (room: 5 * 6 = 30 bytes; needed: 3 + <nr> + 1 <= 14)
if (end - src >= 4 && STRNICMP(src, "<SID>", 5) == 0) {