Mercurial > vim
comparison src/libvterm/src/state.c @ 20486:8ddcdb0d1074 v8.2.0797
patch 8.2.0797: MS-Windows: compiler still can't handle C99 construct
Commit: https://github.com/vim/vim/commit/904e48a22be7e227a73c70e520cf9d8bc50fc1b2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 19 10:33:02 2020 +0200
patch 8.2.0797: MS-Windows: compiler still can't handle C99 construct
Problem: MS-Windows: compiler still can't handle C99 construct.
Solution: Change to C90 construct. (Dominique Pelle, closes https://github.com/vim/vim/issues/6106)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 19 May 2020 10:45:04 +0200 |
parents | 538278607c84 |
children | 1d595fada804 |
comparison
equal
deleted
inserted
replaced
20485:ffaeb617194e | 20486:8ddcdb0d1074 |
---|---|
1778 for(row = 0; row < state->rows && row < rows; row++) { | 1778 for(row = 0; row < state->rows && row < rows; row++) { |
1779 newlineinfo[row] = oldlineinfo[row]; | 1779 newlineinfo[row] = oldlineinfo[row]; |
1780 } | 1780 } |
1781 | 1781 |
1782 for( ; row < rows; row++) { | 1782 for( ; row < rows; row++) { |
1783 VTermLineInfo lineInfo = (VTermLineInfo){0}; | 1783 VTermLineInfo lineInfo = {0}; |
1784 lineInfo.doublewidth = 0; | |
1785 newlineinfo[row] = lineInfo; | 1784 newlineinfo[row] = lineInfo; |
1786 } | 1785 } |
1787 | 1786 |
1788 vterm_allocator_free(state->vt, state->lineinfos[bufidx]); | 1787 vterm_allocator_free(state->vt, state->lineinfos[bufidx]); |
1789 state->lineinfos[bufidx] = newlineinfo; | 1788 state->lineinfos[bufidx] = newlineinfo; |