diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-06 20:18:50 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-06 20:18:50 +0000 |
commit | 8dff818edfb61658b94128111234c3c074c1cadc (patch) | |
tree | ed09901efe925ec1b065c8dbd4cd94165b01cf6f /src/screen.c | |
parent | 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 (diff) | |
download | vim-git-8dff818edfb61658b94128111234c3c074c1cadc.tar.gz |
updated for version 7.0c11
Diffstat (limited to 'src/screen.c')
-rw-r--r-- | src/screen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index 52a6f743a..b82bd9831 100644 --- a/src/screen.c +++ b/src/screen.c @@ -4296,8 +4296,10 @@ win_line(wp, lnum, startrow, endrow, nochange) v = wp->w_skipcol; else v = wp->w_leftcol; - if (vcol < v + col) /* line ends before left margin */ - vcol = v + col; + /* check if line ends before left margin */ + if (vcol < v + col - win_col_off(wp)) + + vcol = v + col - win_col_off(wp); if (wp->w_p_cuc && (int)wp->w_virtcol >= vcol && (int)wp->w_virtcol < W_WIDTH(wp) * (row - startrow + 1) |