changeset 26272:58a7c651c313 v8.2.3667

patch 8.2.3667: building libvterm fails with MSVC Commit: https://github.com/vim/vim/commit/510d8e6056d89d903511c4498afec23f76b4f2a4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 24 19:55:46 2021 +0000 patch 8.2.3667: building libvterm fails with MSVC Problem: Building libvterm fails with MSVC. Solution: Don't use C99 construct.
author Bram Moolenaar <Bram@vim.org>
date Wed, 24 Nov 2021 21:00:04 +0100
parents 488094d12d74
children b80809869668
files src/libvterm/src/state.c src/version.c
diffstat 2 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/libvterm/src/state.c
+++ b/src/libvterm/src/state.c
@@ -1768,12 +1768,14 @@ static void osc_selection(VTermState *st
 
       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;
         }
 
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3667,
+/**/
     3666,
 /**/
     3665,