mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
UI/cleanup: Remove most redraw_later_clear() calls
Vim :! may "mess up the screen" because of e.g. switching between cooked mode, but Nvim just uses pipes. So maybe we can avoid these redraw_later_clear() CYA calls.
This commit is contained in:
@@ -1176,16 +1176,6 @@ static void do_filter(
|
||||
cmd_buf = make_filter_cmd(cmd, itmp, otmp);
|
||||
ui_cursor_goto((int)Rows - 1, 0);
|
||||
|
||||
/*
|
||||
* When not redirecting the output the command can write anything to the
|
||||
* screen. If 'shellredir' is equal to ">", screen may be messed up by
|
||||
* stderr output of external command. Clear the screen later.
|
||||
* If do_in is FALSE, this could be something like ":r !cat", which may
|
||||
* also mess up the screen, clear it later.
|
||||
*/
|
||||
if (!do_out || STRCMP(p_srr, ">") == 0 || !do_in)
|
||||
redraw_later_clear();
|
||||
|
||||
if (do_out) {
|
||||
if (u_save((linenr_T)(line2), (linenr_T)(line2 + 1)) == FAIL) {
|
||||
xfree(cmd_buf);
|
||||
|
Reference in New Issue
Block a user