mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
Merge #7430 'Ignore virtcols after 32000'
This commit is contained in:
@@ -1273,8 +1273,8 @@ int plines_win_nofold(win_T *wp, linenr_T lnum)
|
||||
* Add column offset for 'number', 'relativenumber' and 'foldcolumn'.
|
||||
*/
|
||||
width = wp->w_width - win_col_off(wp);
|
||||
if (width <= 0) {
|
||||
return 32000; // bigger than the number of lines of the screen
|
||||
if (width <= 0 || col > 32000) {
|
||||
return 32000; // bigger than the number of screen columns
|
||||
}
|
||||
if (col <= (unsigned int)width) {
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user