Skip to content

Commit 5202a07

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents bd7d4b4 + e516c39 commit 5202a07

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

src/channel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ channel_send(int ch_idx, char_u *buf, char *fun)
15591559
channel_T *channel = &channels[ch_idx];
15601560
int len = (int)STRLEN(buf);
15611561
int res;
1562-
int fd;
1562+
int fd = -1;
15631563
int use_socket = FALSE;
15641564

15651565
if (channel->ch_sock >= 0)

src/gui_w48.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,13 @@ process_message(void)
17831783
int channel_idx = channel_fd2idx((sock_T)msg.wParam);
17841784

17851785
if (channel_idx >= 0)
1786+
{
1787+
/* Disable error messages, they can mess up the display and throw
1788+
* an exception. */
1789+
++emsg_off;
17861790
channel_read(channel_idx, FALSE, "process_message");
1791+
--emsg_off;
1792+
}
17871793
return;
17881794
}
17891795
#endif

src/testdir/test_channel.vim

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ func s:two_channels(port)
191191
endfunc
192192

193193
func Test_two_channels()
194-
" TODO: make this work again with MS-Windows
195-
if has('unix')
196-
call s:run_server('s:two_channels')
197-
endif
194+
call s:run_server('s:two_channels')
198195
endfunc
199196

200197
" Test that a server crash is handled gracefully.
@@ -211,10 +208,7 @@ func s:server_crash(port)
211208
endfunc
212209

213210
func Test_server_crash()
214-
" TODO: make this work again with MS-Windows
215-
if has('unix')
216-
call s:run_server('s:server_crash')
217-
endif
211+
call s:run_server('s:server_crash')
218212
endfunc
219213

220214
let s:reply = ""

src/version.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,10 @@ static char *(features[]) =
762762

763763
static int included_patches[] =
764764
{ /* Add new patch number below this line */
765+
/**/
766+
1314,
767+
/**/
768+
1313,
765769
/**/
766770
1312,
767771
/**/

0 commit comments

Comments
 (0)