mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:8.2.4968: reading past end of the line when C-indenting
Problem: Reading past end of the line when C-indenting.
Solution: Check for NUL.
60ae0e7149
This commit is contained in:
@@ -150,7 +150,7 @@ static const char_u *skip_string(const char_u *p)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if (p[i] == '\'') { // check for trailing '
|
||||
if (p[i - 1] != NUL && p[i] == '\'') { // check for trailing '
|
||||
p += i;
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user