forked from aniani/vim
patch 8.1.2228: screenpos() returns wrong values when 'number' is set
Problem: screenpos() returns wrong values when 'number' is set. (Ben
Jackson)
Solution: Compare the column with the window width. (closes #5133)
This commit is contained in:
@@ -1217,7 +1217,7 @@ textpos2screenpos(
|
||||
col -= rowoff * width;
|
||||
}
|
||||
col -= wp->w_leftcol;
|
||||
if (col >= width)
|
||||
if (col >= wp->w_width)
|
||||
col = -1;
|
||||
if (col >= 0)
|
||||
coloff = col - scol + wp->w_wincol + 1;
|
||||
|
||||
Reference in New Issue
Block a user