Skip to content

Commit ccd65be

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 057a219 + 0bb6108 commit ccd65be

File tree

10 files changed

+149
-94
lines changed

10 files changed

+149
-94
lines changed

runtime/doc/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ DOCS = \
3232
ft_ada.txt \
3333
ft_sql.txt \
3434
gui.txt \
35-
gui_w16.txt \
3635
gui_w32.txt \
3736
gui_x11.txt \
3837
hangulin.txt \
@@ -167,7 +166,6 @@ HTMLS = \
167166
ft_ada.html \
168167
ft_sql.html \
169168
gui.html \
170-
gui_w16.html \
171169
gui_w32.html \
172170
gui_x11.html \
173171
hangulin.html \
@@ -388,9 +386,6 @@ hebrew.txt:
388386
russian.txt:
389387
touch russian.txt
390388

391-
gui_w16.txt:
392-
touch gui_w16.txt
393-
394389
gui_w32.txt:
395390
touch gui_w32.txt
396391

src/auto/configure

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9163,7 +9163,7 @@ $as_echo_n "checking version of Gdk-Pixbuf... " >&6; }
91639163
gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
91649164
sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'`
91659165
if test "x$gdk_pixbuf_version_minor" != x -a \
9166-
$gdk_pixbuf_version_minor -ge 31 ; then
9166+
$gdk_pixbuf_version_minor -ge 31 ; then
91679167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5
91689168
$as_echo "OK." >&6; }
91699169
# Extract the first word of "glib-compile-resources", so it can be a program name with args.
@@ -9210,15 +9210,16 @@ fi
92109210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5
92119211
$as_echo_n "checking glib-compile-resources... " >&6; }
92129212
if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
9213-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
9213+
GLIB_COMPILE_RESOURCES=""
9214+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5
92149215
$as_echo "cannot be found in PATH." >&6; }
92159216
else
92169217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5
92179218
$as_echo "usable." >&6; }
9218-
$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
9219+
$as_echo "#define USE_GRESOURCE 1" >>confdefs.h
92199220

9220-
GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9221-
GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
9221+
GRESOURCE_SRC="auto/gui_gtk_gresources.c"
9222+
GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
92229223
fi
92239224
else
92249225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5

src/channel.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,8 @@ channel_free_all(void)
15731573

15741574

15751575
/* Sent when the channel is found closed when reading. */
1576-
#define DETACH_MSG "\"DETACH\"\n"
1576+
#define DETACH_MSG_RAW "DETACH\n"
1577+
#define DETACH_MSG_JSON "\"DETACH\"\n"
15771578

15781579
/* Buffer size for reading incoming messages. */
15791580
#define MAXMSGSIZE 4096
@@ -1677,6 +1678,7 @@ channel_read(channel_T *channel, int part, char *func)
16771678
int readlen = 0;
16781679
sock_T fd;
16791680
int use_socket = FALSE;
1681+
char *msg;
16801682

16811683
fd = channel->ch_part[part].ch_fd;
16821684
if (fd == INVALID_FD)
@@ -1725,9 +1727,9 @@ channel_read(channel_T *channel, int part, char *func)
17251727
}
17261728
#endif
17271729

1728-
/* Reading a socket disconnection (readlen == 0), or a socket error.
1730+
/* Reading a disconnection (readlen == 0), or an error.
17291731
* TODO: call error callback. */
1730-
if (readlen <= 0 && channel->ch_job == NULL)
1732+
if (readlen <= 0)
17311733
{
17321734
/* Queue a "DETACH" netbeans message in the command queue in order to
17331735
* terminate the netbeans session later. Do not end the session here
@@ -1740,8 +1742,10 @@ channel_read(channel_T *channel, int part, char *func)
17401742
* -> channel_read()
17411743
*/
17421744
ch_errors(channel, "%s(): Cannot read", func);
1743-
channel_save(channel, part,
1744-
(char_u *)DETACH_MSG, (int)STRLEN(DETACH_MSG));
1745+
msg = channel->ch_part[part].ch_mode == MODE_RAW
1746+
|| channel->ch_part[part].ch_mode == MODE_NL
1747+
? DETACH_MSG_RAW : DETACH_MSG_JSON;
1748+
channel_save(channel, part, (char_u *)msg, (int)STRLEN(msg));
17451749

17461750
/* TODO: When reading from stdout is not possible, should we try to
17471751
* keep stdin and stderr open? Probably not, assume the other side

src/configure.in

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,17 +2684,18 @@ if test "x$GUITYPE" = "xGTK"; then
26842684
gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \
26852685
sed -e 's/[[0-9]][[0-9]]*\.\([[0-9]][[0-9]]*\)\.[[0-9]][[0-9]]*/\1/'`
26862686
if test "x$gdk_pixbuf_version_minor" != x -a \
2687-
$gdk_pixbuf_version_minor -ge 31 ; then
2687+
$gdk_pixbuf_version_minor -ge 31 ; then
26882688
AC_MSG_RESULT([OK.])
26892689
AC_PATH_PROG(GLIB_COMPILE_RESOURCES,[glib-compile-resources],no)
26902690
AC_MSG_CHECKING([glib-compile-resources])
26912691
if test "x$GLIB_COMPILE_RESOURCES" = xno ; then
2692-
AC_MSG_RESULT([cannot be found in PATH.])
2692+
GLIB_COMPILE_RESOURCES=""
2693+
AC_MSG_RESULT([cannot be found in PATH.])
26932694
else
26942695
AC_MSG_RESULT([usable.])
2695-
AC_DEFINE(USE_GRESOURCE)
2696-
GRESOURCE_SRC="auto/gui_gtk_gresources.c"
2697-
GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
2696+
AC_DEFINE(USE_GRESOURCE)
2697+
GRESOURCE_SRC="auto/gui_gtk_gresources.c"
2698+
GRESOURCE_OBJ="objects/gui_gtk_gresources.o"
26982699
fi
26992700
else
27002701
AC_MSG_RESULT([not usable.])

0 commit comments

Comments
 (0)