diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-27 21:39:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-27 21:39:09 +0100 |
commit | 38ba4dce4a8574e60f6ddb111922880b0c7affdc (patch) | |
tree | ae4f543edd710eff94e1d5bf77329b5cdbdd22a3 /src/move.c | |
parent | 1c329c04be2e95a3589a53f2978926e91b450cca (diff) |
patch 8.1.2228: screenpos() returns wrong values when 'number' is setv8.1.2228
Problem: screenpos() returns wrong values when 'number' is set. (Ben
Jackson)
Solution: Compare the column with the window width. (closes #5133)
Diffstat (limited to 'src/move.c')
-rw-r--r-- | src/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c index 97f5ac1b7d..d6b1c2636f 100644 --- a/src/move.c +++ b/src/move.c @@ -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; |