Mercurial > vim
diff src/channel.c @ 12313:44f3c9b7eec4 v8.0.1036
patch 8.0.1036: ++eof argument for terminal only available on MS-Windows
commit https://github.com/vim/vim/commit/dada6d2a8e887309e88cb126f1251d81f91b4b9d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 2 17:18:35 2017 +0200
patch 8.0.1036: ++eof argument for terminal only available on MS-Windows
Problem: ++eof argument for terminal only available on MS-Windows.
Solution: Also support ++eof on Unix. Add a test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Sep 2017 17:30:03 +0200 |
parents | 66fa8eabbd6e |
children | d0cf7f71b95b |
line wrap: on
line diff
--- 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 * } 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 * EMSG2(_(e_invarg2), "term_opencmd"); return FAIL; } -# endif } else if (STRCMP(hi->hi_key, "term_rows") == 0) {