aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/input.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-05-24 11:51:35 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-06-04 02:09:24 +0200
commitd00ef758c3a644759064565cdc7fc219ece0df3a (patch)
treea5953c43f8ba7b8073dbb276b2d4502a113ca297 /src/nvim/os/input.c
parent4b70ebe0130d746a471cd2772483979c68ee6744 (diff)
downloadrneovim-d00ef758c3a644759064565cdc7fc219ece0df3a.tar.gz
rneovim-d00ef758c3a644759064565cdc7fc219ece0df3a.tar.bz2
rneovim-d00ef758c3a644759064565cdc7fc219ece0df3a.zip
lint
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r--src/nvim/os/input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c
index 405500767d..69caa6aaf3 100644
--- a/src/nvim/os/input.c
+++ b/src/nvim/os/input.c
@@ -50,7 +50,7 @@ void input_init(void)
input_buffer = rbuffer_new(INPUT_BUFFER_SIZE + MAX_KEY_CODE_LEN);
}
-/// Gets the file from which input was gathered at startup.
+/// File (set at startup) used to read user-input (or commands for -e/-es).
int input_global_fd(void)
{
return global_fd;
@@ -438,8 +438,9 @@ static bool input_ready(void)
// Exit because of an input read error.
static void read_error_exit(void)
{
- if (silent_mode) /* Normal way to exit for "ex -s" */
+ if (silent_mode) { // Normal way to exit for "nvim -es".
getout(0);
+ }
STRCPY(IObuff, _("Vim: Error reading input, exiting...\n"));
preserve_exit();
}