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