From 2d6e44087734a39b5e0f2789bcd68e1a4526955f Mon Sep 17 00:00:00 2001 From: erw7 Date: Tue, 4 Jun 2019 09:06:35 +0900 Subject: Remove display_erros() do_shell() in Nvim uses the Nvim UI, not the tty directly, so display_errors() is not necessary anymore. --- src/nvim/ex_cmds.c | 3 --- src/nvim/vim.h | 1 - 2 files changed, 4 deletions(-) (limited to 'src/nvim') 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 -- cgit