John Marriott wrote:

> On 07-Mar-2022 06:56, Bram Moolenaar wrote:
> > Patch 8.2.4520
> > Problem:    Using wrong highlight for cursor line number.
> > Solution:   Take filler lines into account when using CursorLineNr.
> >              (closes #9897)
> > Files:      src/drawline.c, src/testdir/test_diffmode.vim,
> >              src/testdir/dumps/Test_diff_with_cursorline_number_01.dump,
> >              src/testdir/dumps/Test_diff_with_cursorline_number_02.dump
> >
> >
> After this match mingw64 (gcc 11.2.0) spits out this error if FEAT_DIFF 
> or FEAT_SIGNS are not defined:
> <snip>
> gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 
> -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO 
> -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return 
> -fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD drawline.c -o 
> gobjnative/drawline.o
> drawline.c: In function 'win_line':
> drawline.c:1197:53: error: 'filler_lines' undeclared (first use in this 
> function)
>   1197 |                               && (row == startrow + filler_lines
>        | ^~~~~~~~~~~~
> drawline.c:1197:53: note: each undeclared identifier is reported only 
> once for each function it appears in
> make: *** [Make_cyg_ming.mak:1184: gobjnative/drawline.o] Error 1
> </snip>
> 
> Not sure the best way to fix it.

There were a couple other places with an #ifdef around using
filler_lines.  Let's #define it to zero when it's not declared.

-- 
hundred-and-one symptoms of being an internet addict:
181. You still remember the "happy tune" your modem made
     while dialing your ISP.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220306204827.54DBF1C042A%40moolenaar.net.

Raspunde prin e-mail lui