summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-02 17:18:35 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-02 17:18:35 +0200
commitdada6d2a8e887309e88cb126f1251d81f91b4b9d (patch)
tree90b1f483ed53f0b6c5ab963c6becc1e1cd9887fd /src/channel.c
parentef68e4fa528165f8dd63156feeffc1af629b8d8a (diff)
patch 8.0.1036: ++eof argument for terminal only available on MS-Windowsv8.0.1036
Problem: ++eof argument for terminal only available on MS-Windows. Solution: Also support ++eof on Unix. Add a test.
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/channel.c b/src/channel.c
index 5a7e2a7301..30a4304d8a 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1422,9 +1422,8 @@ channel_write_in(channel_T *channel)
in_part->ch_buf_top = lnum;
if (lnum > buf->b_ml.ml_line_count || lnum > in_part->ch_buf_bot)
{
-#if defined(WIN32) && defined(FEAT_TERMINAL)
- /* Send CTRL-D or "eof_chars" to close stdin on Windows. A console
- * application doesn't treat closing stdin like UNIX. */
+#if defined(FEAT_TERMINAL)
+ /* Send CTRL-D or "eof_chars" to close stdin on MS-Windows. */
if (channel->ch_job != NULL)
term_send_eof(channel);
#endif
@@ -4640,7 +4639,6 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
}
else if (STRCMP(hi->hi_key, "eof_chars") == 0)
{
-# ifdef WIN3264
char_u *p;
if (!(supported2 & JO2_EOF_CHARS))
@@ -4652,7 +4650,6 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
EMSG2(_(e_invarg2), "term_opencmd");
return FAIL;
}
-# endif
}
else if (STRCMP(hi->hi_key, "term_rows") == 0)
{