diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-09-10 09:47:04 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-09-12 08:30:26 +0200 |
commit | 31c3d5466832a19029b9815c53eacc3c726ff569 (patch) | |
tree | 774bf6c40b9a6ec50baaadab25a1cf1090d7b05d /src/nvim/ex_cmds.c | |
parent | 931e15471c10857af73aa0f0caa3aaaefe5986be (diff) | |
download | rneovim-31c3d5466832a19029b9815c53eacc3c726ff569.tar.gz rneovim-31c3d5466832a19029b9815c53eacc3c726ff569.tar.bz2 rneovim-31c3d5466832a19029b9815c53eacc3c726ff569.zip |
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.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index b700d780c7..b97df801e3 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -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); |