]> granicus.if.org Git - vim/commitdiff
patch 8.2.3667: building libvterm fails with MSVC v8.2.3667
authorBram Moolenaar <Bram@vim.org>
Wed, 24 Nov 2021 19:55:46 +0000 (19:55 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 24 Nov 2021 19:55:46 +0000 (19:55 +0000)
Problem:    Building libvterm fails with MSVC.
Solution:   Don't use C99 construct.

src/libvterm/src/state.c
src/version.c

index e3c76bc1a1853e8bff2f15b3b1f3fb229bc99716..4fddf5b2ab150c967aaecb259278cd38d266d111 100644 (file)
@@ -1768,12 +1768,14 @@ static void osc_selection(VTermState *state, VTermStringFragment frag)
 
       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);
+         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;
         }
 
index 527691c920e4b40254f84b26a07c5b5a201e4399..42cfafa946c3d6336a96e4dbc2fed83cd5b45a23 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3667,
 /**/
     3666,
 /**/