mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Safer loop for skipping consecutive concealed chars
This commit is contained in:
parent
be7990bb49
commit
2eb8dc40ac
@ -699,11 +699,12 @@ static int mouse_adjust_click(win_T *wp, int row, int col)
|
||||
}
|
||||
|
||||
prev_matchid = matchid;
|
||||
do {
|
||||
|
||||
while (prev_matchid == matchid && *ptr != NUL) {
|
||||
incr();
|
||||
ptr += utfc_ptr2len(ptr);
|
||||
matchid = syn_get_concealed_id(wp, lnum, (colnr_T)(ptr - line));
|
||||
} while (prev_matchid == matchid);
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user