patch 9.1.1281: extra newline output when editing stdin
Problem: extra newline output when editing stdin
Solution: remove outputting when reading from stdin in non-terminal mode
(Abhijit Barik)
fixes: #16856
closes: #17047
Co-authored-by: LemonBoy <LemonBoy@users.noreply.github.com>
Signed-off-by: Abhijit Barik <Abhijit.Barik@ivanti.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ba73766788
commit
221927b2bf
@ -660,7 +660,7 @@ vim_main2(void)
|
||||
#if defined(UNIX) || defined(VMS)
|
||||
// When switching screens and something caused a message from a vimrc
|
||||
// script, need to output an extra newline on exit.
|
||||
if ((did_emsg || msg_didout) && *T_TI != NUL)
|
||||
if ((did_emsg || msg_didout) && *T_TI != NUL && params.edit_type != EDIT_STDIN)
|
||||
newline_on_exit = TRUE;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user