Patch 8.2.0796

7 views
Skip to first unread message

Bram Moolenaar

unread,
May 18, 2020, 5:28:39 PM5/18/20
to vim...@googlegroups.com

Patch 8.2.0796
Problem: MS-Windows: compiler can't handle C99 construct in libvterm.
Solution: Change to C90 construct.
Files: src/libvterm/src/state.c


*** ../vim-8.2.0795/src/libvterm/src/state.c 2020-05-18 21:50:32.932742338 +0200
--- src/libvterm/src/state.c 2020-05-18 23:27:06.019266230 +0200
***************
*** 1780,1788 ****
}

for( ; row < rows; row++) {
! newlineinfo[row] = (VTermLineInfo){
! .doublewidth = 0,
! };
}

vterm_allocator_free(state->vt, state->lineinfos[bufidx]);
--- 1780,1788 ----
}

for( ; row < rows; row++) {
! VTermLineInfo lineInfo = (VTermLineInfo){0};
! lineInfo.doublewidth = 0;
! newlineinfo[row] = lineInfo;
}

vterm_allocator_free(state->vt, state->lineinfos[bufidx]);
*** ../vim-8.2.0795/src/version.c 2020-05-18 21:50:32.932742338 +0200
--- src/version.c 2020-05-18 23:26:06.087431823 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 796,
/**/

--
There are three kinds of persons: Those who can count and those who can't.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages