mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
vim-patch:8.2.1560: using NULL pointers in some code
Problem: Using NULL pointers in some code. (James McCoy)
Solution: Avoid adding to a NULL pointer. Use byte as unsigned.
9c2b06637b
The changes to eval.c (skip_expr_concatenate) and vim9compile.c aren't
included since they're specific to vim9script support.
This commit is contained in:
@@ -5663,6 +5663,9 @@ check_suggestions (
|
||||
int len;
|
||||
hlf_T attr;
|
||||
|
||||
if (gap->ga_len == 0) {
|
||||
return;
|
||||
}
|
||||
stp = &SUG(*gap, 0);
|
||||
for (int i = gap->ga_len - 1; i >= 0; --i) {
|
||||
// Need to append what follows to check for "the the".
|
||||
|
Reference in New Issue
Block a user