Skip to content

Commit d6d17c8

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents fce3a43 + 1572e30 commit d6d17c8

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

src/os_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ mch_inchar(
511511
|| interrupted
512512
#endif
513513
|| wait_time > 0
514-
|| !did_start_blocking)
514+
|| (wtime < 0 && !did_start_blocking))
515515
continue;
516516

517517
/* no character available or interrupted */

src/testdir/test_clientserver.vim

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ func Test_client_server()
1111
if cmd == ''
1212
return
1313
endif
14-
if has('unix')
14+
if has('x11')
15+
if empty($DISPLAY)
16+
throw 'Skipped: $DISPLAY is not set'
17+
endif
1518
try
1619
call remote_send('xxx', '')
1720
catch
1821
if v:exception =~ 'E240:'
19-
" No connection to the X server, give up.
20-
return
22+
throw 'Skipped: no connection to the X server'
2123
endif
2224
" ignore other errors
2325
endtry

src/testdir/test_quotestar.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,12 @@ func Test_quotestar()
118118

119119
if has('macunix')
120120
let skipped = Do_test_quotestar_for_macunix()
121-
elseif !empty("$DISPLAY")
122-
let skipped = Do_test_quotestar_for_x11()
121+
elseif has('x11')
122+
if empty($DISPLAY)
123+
let skipped = "Test can only run when $DISPLAY is set."
124+
else
125+
let skipped = Do_test_quotestar_for_x11()
126+
endif
123127
else
124128
let skipped = "Test is not implemented yet for this platform."
125129
endif

src/version.c

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

780780
static int included_patches[] =
781781
{ /* Add new patch number below this line */
782+
/**/
783+
512,
784+
/**/
785+
511,
782786
/**/
783787
510,
784788
/**/

0 commit comments

Comments
 (0)