Merge #7430 'Ignore virtcols after 32000'

This commit is contained in:
Justin M. Keyes
2017-10-22 16:43:43 +02:00
committed by GitHub
2 changed files with 25 additions and 2 deletions

View File

@@ -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;