Mercurial > vim
comparison src/channel.c @ 10253:a92c4abb8c1f v8.0.0024
commit https://github.com/vim/vim/commit/8ddef48d1eade1911b946fdda8c73c80856e6273
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 9 15:43:25 2016 +0200
patch 8.0.0024
Problem: When the netbeans channel closes, "DETACH" is put in the output
part. (Ozaki Kiichi)
Solution: Write "DETACH" in the socket part.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 09 Oct 2016 15:45:03 +0200 |
parents | 920c73a27dda |
children | a09db7a4afe0 |
comparison
equal
deleted
inserted
replaced
10252:dfabecac3c48 | 10253:a92c4abb8c1f |
---|---|
3059 * -> gui event loop or select loop | 3059 * -> gui event loop or select loop |
3060 * -> channel_read() | 3060 * -> channel_read() |
3061 * Only send "DETACH" for a netbeans channel. | 3061 * Only send "DETACH" for a netbeans channel. |
3062 */ | 3062 */ |
3063 if (channel->ch_nb_close_cb != NULL) | 3063 if (channel->ch_nb_close_cb != NULL) |
3064 channel_save(channel, PART_OUT, (char_u *)DETACH_MSG_RAW, | 3064 channel_save(channel, PART_SOCK, (char_u *)DETACH_MSG_RAW, |
3065 (int)STRLEN(DETACH_MSG_RAW), FALSE, "PUT "); | 3065 (int)STRLEN(DETACH_MSG_RAW), FALSE, "PUT "); |
3066 | 3066 |
3067 /* When reading from stdout is not possible, assume the other side has | 3067 /* When reading from stdout is not possible, assume the other side has |
3068 * died. Don't close the channel right away, it may be the wrong moment | 3068 * died. Don't close the channel right away, it may be the wrong moment |
3069 * to invoke callbacks. */ | 3069 * to invoke callbacks. */ |