diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-03 20:01:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-03 20:01:16 +0100 |
commit | b6aab8f44beb8c5d99393abdc2c9faab085c72aa (patch) | |
tree | dffa0fca48cf9bb9dce8f2b5f2b32f1d96f642e8 /src/drawline.c | |
parent | f269eabc6c4f5bdcef989cd5b4b95ba8ccaa4d8a (diff) |
patch 9.0.0652: 'smoothscroll' not tested with 'number' and "n" in 'cpo'v9.0.0652
Problem: 'smoothscroll' not tested with 'number' and "n" in 'cpo'.
Solution: Add tests, fix uncovered problem.
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drawline.c b/src/drawline.c index 4d504e1035..d36eee7f59 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -347,8 +347,9 @@ handle_lnum_col( int num_attr UNUSED) { if ((wp->w_p_nu || wp->w_p_rnu) - && (wlv->row == wlv->startrow + wlv->filler_lines - || vim_strchr(p_cpo, CPO_NUMCOL) == NULL)) + && ((wlv->row == wlv->startrow + wlv->filler_lines + && (wp->w_skipcol == 0 || wlv->row > wp->w_winrow)) + || vim_strchr(p_cpo, CPO_NUMCOL) == NULL)) { #ifdef FEAT_SIGNS // If 'signcolumn' is set to 'number' and a sign is present |