aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-06-04 09:06:35 +0900
committererw7 <erw7.github@gmail.com>2019-06-09 13:28:10 +0900
commit2d6e44087734a39b5e0f2789bcd68e1a4526955f (patch)
treed7fa9210ea10f93aa9c6d0124bb825de15f57911
parentf66ffc64f611cae52df50df0e495b6ef08594e50 (diff)
downloadrneovim-2d6e44087734a39b5e0f2789bcd68e1a4526955f.tar.gz
rneovim-2d6e44087734a39b5e0f2789bcd68e1a4526955f.tar.bz2
rneovim-2d6e44087734a39b5e0f2789bcd68e1a4526955f.zip
Remove display_erros()
do_shell() in Nvim uses the Nvim UI, not the tty directly, so display_errors() is not necessary anymore.
-rw-r--r--src/nvim/ex_cmds.c3
-rw-r--r--src/nvim/vim.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 1dd76553d4..abed909008 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -1391,9 +1391,6 @@ do_shell(
msg_row = Rows - 1;
msg_col = 0;
- // display any error messages now
- display_errors();
-
apply_autocmds(EVENT_SHELLCMDPOST, NULL, NULL, FALSE, curbuf);
}
diff --git a/src/nvim/vim.h b/src/nvim/vim.h
index 5261d266b2..60737014b3 100644
--- a/src/nvim/vim.h
+++ b/src/nvim/vim.h
@@ -291,7 +291,6 @@ enum { FOLD_TEXT_LEN = 51 }; //!< buffer size for get_foldtext()
# define mch_errmsg(str) fprintf(stderr, "%s", (str))
# define mch_msg(str) printf("%s", (str))
#endif
-#define display_errors() fflush(stderr)
#include "nvim/globals.h" // global variables and messages
#include "nvim/buffer_defs.h" // buffer and windows