mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 11:18:19 +00:00
Merge #7939 "fix crash: 'spell' and long lines"
This commit is contained in:
@@ -3353,10 +3353,11 @@ win_line (
|
||||
|
||||
/* Use nextline[] if possible, it has the start of the
|
||||
* next line concatenated. */
|
||||
if ((prev_ptr - line) - nextlinecol >= 0)
|
||||
p = nextline + (prev_ptr - line) - nextlinecol;
|
||||
else
|
||||
if ((prev_ptr - line) - nextlinecol >= 0) {
|
||||
p = nextline + ((prev_ptr - line) - nextlinecol);
|
||||
} else {
|
||||
p = prev_ptr;
|
||||
}
|
||||
cap_col -= (int)(prev_ptr - line);
|
||||
size_t tmplen = spell_check(wp, p, &spell_hlf, &cap_col, nochange);
|
||||
assert(tmplen <= INT_MAX);
|
||||
|
Reference in New Issue
Block a user