Patch 8.2.3667
Problem:    Building libvterm fails with MSVC.
Solution:   Don't use C99 construct.
Files:      src/libvterm/src/state.c


*** ../vim-8.2.3666/src/libvterm/src/state.c    2021-11-24 19:30:35.070782234 
+0000
--- src/libvterm/src/state.c    2021-11-24 19:51:32.260939829 +0000
***************
*** 1768,1779 ****
  
        if(!frag.len || (state->selection.buflen - bufcur) < 3) {
          if(bufcur) {
!           (*state->selection.callbacks->set)(state->tmp.selection.mask, 
(VTermStringFragment){
!               .str     = state->selection.buffer,
!               .len     = bufcur,
!               .initial = state->tmp.selection.state == SELECTION_SET_INITIAL,
!               .final   = frag.final,
!             }, state->selection.user);
            state->tmp.selection.state = SELECTION_SET;
          }
  
--- 1768,1781 ----
  
        if(!frag.len || (state->selection.buflen - bufcur) < 3) {
          if(bufcur) {
!         VTermStringFragment setfrag = {
!           state->selection.buffer, // str
!           bufcur, // len
!           state->tmp.selection.state == SELECTION_SET_INITIAL, // initial
!           frag.final // final
!         };
!           (*state->selection.callbacks->set)(state->tmp.selection.mask,
!             setfrag, state->selection.user);
            state->tmp.selection.state = SELECTION_SET;
          }
  
*** ../vim-8.2.3666/src/version.c       2021-11-24 19:30:35.074782224 +0000
--- src/version.c       2021-11-24 19:53:08.084819193 +0000
***************
*** 759,760 ****
--- 759,762 ----
  {   /* Add new patch number below this line */
+ /**/
+     3667,
  /**/

-- 
A parent can be arrested if his child cannot hold back a burp during a church
service.
                [real standing law in Nebraska, United States of America]

 /// 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/20211124195610.440181C0745%40moolenaar.net.

Raspunde prin e-mail lui