diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-06 19:21:20 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-06 19:21:20 +0100 |
commit | 06618f94f1c9ed73a84ad5d6a8e1933b0b8da846 (patch) | |
tree | 148d12a8da52cc6e477a2216e7fb884076034631 /src/drawline.c | |
parent | d459020c62f945ca089a6f7349d559cc9db8596b (diff) |
patch 9.0.0677: breakindent test accepts wrong resultv9.0.0677
Problem: Breakindent test accepts wrong result.
Solution: Fix the number column and adjust the expected text.
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drawline.c b/src/drawline.c index 018a6d8c5f..4bda102bae 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -343,9 +343,8 @@ handle_lnum_col( int num_attr UNUSED) { if ((wp->w_p_nu || wp->w_p_rnu) - && ((wlv->row == wlv->startrow + wlv->filler_lines - && (wp->w_skipcol == 0 || wlv->row > wp->w_winrow)) - || vim_strchr(p_cpo, CPO_NUMCOL) == NULL)) + && (wlv->row == wlv->startrow + wlv->filler_lines + || vim_strchr(p_cpo, CPO_NUMCOL) == NULL)) { #ifdef FEAT_SIGNS // If 'signcolumn' is set to 'number' and a sign is present @@ -363,7 +362,7 @@ handle_lnum_col( #ifdef FEAT_PROP_POPUP + wlv->text_prop_above_count #endif - ) + && (wp->w_skipcol == 0 || wlv->row > wp->w_winrow)) { long num; char *fmt = "%*ld "; |