diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-18 14:55:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-18 14:55:23 +0100 |
commit | 234d16286a2733adedef56784c17415ae169b9ad (patch) | |
tree | 6e449f9d6348ddc7ef2f50bbe9b8136387af502a /src/fileio.c | |
parent | ae1e108caaa9ce2ca03076f8c4c10275f0c66b9c (diff) | |
download | vim-git-234d16286a2733adedef56784c17415ae169b9ad.tar.gz |
patch 8.0.1308: the "Reading from stdin" message may be undesiredv8.0.1308
Problem: The "Reading from stdin" message may be undesired and there is no
easy way to skip it.
Solution: Don't show the message with --not-a-term was used.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/fileio.c b/src/fileio.c index 2c5c8b9b4..fb49f28f8 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -849,17 +849,20 @@ readfile( */ if (read_stdin) { + if (!is_not_a_term()) + { #ifndef ALWAYS_USE_GUI - mch_msg(_("Vim: Reading from stdin...\n")); + mch_msg(_("Vim: Reading from stdin...\n")); #endif #ifdef FEAT_GUI - /* Also write a message in the GUI window, if there is one. */ - if (gui.in_use && !gui.dying && !gui.starting) - { - p = (char_u *)_("Reading from stdin..."); - gui_write(p, (int)STRLEN(p)); - } + /* Also write a message in the GUI window, if there is one. */ + if (gui.in_use && !gui.dying && !gui.starting) + { + p = (char_u *)_("Reading from stdin..."); + gui_write(p, (int)STRLEN(p)); + } #endif + } } else if (!read_buffer) filemess(curbuf, sfname, (char_u *)"", 0); |