To: vim_dev@googlegroups.com Subject: Patch 8.0.1308 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.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. Files: src/fileio.c *** ../vim-8.0.1307/src/fileio.c 2017-11-17 21:35:19.987714195 +0100 --- src/fileio.c 2017-11-18 14:51:23.523304947 +0100 *************** *** 849,865 **** */ if (read_stdin) { #ifndef ALWAYS_USE_GUI ! 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)); ! } #endif } else if (!read_buffer) filemess(curbuf, sfname, (char_u *)"", 0); --- 849,868 ---- */ if (read_stdin) { + if (!is_not_a_term()) + { #ifndef ALWAYS_USE_GUI ! 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)); ! } #endif + } } else if (!read_buffer) filemess(curbuf, sfname, (char_u *)"", 0); *** ../vim-8.0.1307/src/version.c 2017-11-17 21:35:19.991714135 +0100 --- src/version.c 2017-11-18 14:46:53.747316447 +0100 *************** *** 768,769 **** --- 768,771 ---- { /* Add new patch number below this line */ + /**/ + 1308, /**/ -- A)bort, R)etry, B)ang it with a large hammer /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///