On 15-Sept-2022 07:14, Bram Moolenaar wrote:
Patch 9.0.0466
Problem:    Virtual text wrong after adding line break after line.
Solution:   Pass an "eol" flag to where text properties are adjusted.
             (closes #11131)
Files:      src/change.c, src/textprop.c, src/proto/textprop.pro,
             src/testdir/test_textprop.vim,
             src/testdir/dumps/Test_prop_below_split_line_1.dump


After this patch mingw64 (gcc 12.2.0) throws this error:
<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 ex_cmds.c -o gobjnative/ex_cmds.o
ex_cmds.c: In function 'ex_substitute':
ex_cmds.c:4687:29: error: too few arguments to function 'adjust_props_for_split'  4687 |                             adjust_props_for_split(lnum + 1, lnum, plen, 1);
      |                             ^~~~~~~~~~~~~~~~~~~~~~
In file included from proto.h:201,
                 from vim.h:2266,
                 from ex_cmds.c:14:
proto/textprop.pro:25:6: note: declared here
   25 | void adjust_props_for_split(linenr_T lnum_props, linenr_T lnum_top, int kept, int deleted, int at_eol);
      |      ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Make_cyg_ming.mak:1217: gobjnative/ex_cmds.o] Error 1
</snip>

Sorry I don't have a patch for this.

Cheers
John

--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/a391c966-58a1-249d-2f4c-86b8940d1be4%40internode.on.net.

Raspunde prin e-mail lui