mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3667: building libvterm fails with MSVC
Problem: Building libvterm fails with MSVC. Solution: Don't use C99 construct.
This commit is contained in:
parent
7da341560e
commit
510d8e6056
@ -1768,12 +1768,14 @@ static void osc_selection(VTermState *state, VTermStringFragment frag)
|
|||||||
|
|
||||||
if(!frag.len || (state->selection.buflen - bufcur) < 3) {
|
if(!frag.len || (state->selection.buflen - bufcur) < 3) {
|
||||||
if(bufcur) {
|
if(bufcur) {
|
||||||
(*state->selection.callbacks->set)(state->tmp.selection.mask, (VTermStringFragment){
|
VTermStringFragment setfrag = {
|
||||||
.str = state->selection.buffer,
|
state->selection.buffer, // str
|
||||||
.len = bufcur,
|
bufcur, // len
|
||||||
.initial = state->tmp.selection.state == SELECTION_SET_INITIAL,
|
state->tmp.selection.state == SELECTION_SET_INITIAL, // initial
|
||||||
.final = frag.final,
|
frag.final // final
|
||||||
}, state->selection.user);
|
};
|
||||||
|
(*state->selection.callbacks->set)(state->tmp.selection.mask,
|
||||||
|
setfrag, state->selection.user);
|
||||||
state->tmp.selection.state = SELECTION_SET;
|
state->tmp.selection.state = SELECTION_SET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3667,
|
||||||
/**/
|
/**/
|
||||||
3666,
|
3666,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user