1
0
forked from aniani/vim

patch 9.0.0677: breakindent test accepts wrong result

Problem:    Breakindent test accepts wrong result.
Solution:   Fix the number column and adjust the expected text.
This commit is contained in:
Bram Moolenaar
2022-10-06 19:21:20 +01:00
parent d459020c62
commit 06618f94f1
3 changed files with 18 additions and 19 deletions

View File

@@ -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 ";