comparison src/fileio.c @ 12863:e7ec107f6354 v8.0.1308

patch 8.0.1308: the "Reading from stdin" message may be undesired commit https://github.com/vim/vim/commit/234d16286a2733adedef56784c17415ae169b9ad Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 18 14:55:23 2017 +0100 patch 8.0.1308: the "Reading from stdin" message may be undesired 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Nov 2017 15:00:04 +0100
parents d07c1817dd98
children 6e81a68d63a1
comparison
equal deleted inserted replaced
12862:9c21b0f08a37 12863:e7ec107f6354
847 * still be running, don't move the cursor to the last line, unless 847 * still be running, don't move the cursor to the last line, unless
848 * always using the GUI. 848 * always using the GUI.
849 */ 849 */
850 if (read_stdin) 850 if (read_stdin)
851 { 851 {
852 if (!is_not_a_term())
853 {
852 #ifndef ALWAYS_USE_GUI 854 #ifndef ALWAYS_USE_GUI
853 mch_msg(_("Vim: Reading from stdin...\n")); 855 mch_msg(_("Vim: Reading from stdin...\n"));
854 #endif 856 #endif
855 #ifdef FEAT_GUI 857 #ifdef FEAT_GUI
856 /* Also write a message in the GUI window, if there is one. */ 858 /* Also write a message in the GUI window, if there is one. */
857 if (gui.in_use && !gui.dying && !gui.starting) 859 if (gui.in_use && !gui.dying && !gui.starting)
858 { 860 {
859 p = (char_u *)_("Reading from stdin..."); 861 p = (char_u *)_("Reading from stdin...");
860 gui_write(p, (int)STRLEN(p)); 862 gui_write(p, (int)STRLEN(p));
861 } 863 }
862 #endif 864 #endif
865 }
863 } 866 }
864 else if (!read_buffer) 867 else if (!read_buffer)
865 filemess(curbuf, sfname, (char_u *)"", 0); 868 filemess(curbuf, sfname, (char_u *)"", 0);
866 } 869 }
867 870