diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-06-17 23:19:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-17 23:19:59 +0200 |
commit | c1c14faad935c7928779e93ebd6c827ac53ce2db (patch) | |
tree | 165ff97f2e0f2f0944af1dc37bfec6bdf71794b3 /src/nvim/main.c | |
parent | 3cc350696576f26fe1e978ef78125a1a6c7410ab (diff) | |
parent | 487cf98c0b61ade023fc71d945a64e61f8374eac (diff) | |
download | rneovim-c1c14faad935c7928779e93ebd6c827ac53ce2db.tar.gz rneovim-c1c14faad935c7928779e93ebd6c827ac53ce2db.tar.bz2 rneovim-c1c14faad935c7928779e93ebd6c827ac53ce2db.zip |
Merge #8520 'Ex mode: always "improved" (gQ)'
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 8d98f9e915..ea43b93b30 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -301,9 +301,11 @@ int main(int argc, char **argv) // Read ex-commands if invoked with "-es". // bool reading_tty = !headless_mode + && !silent_mode && (params.input_isatty || params.output_isatty || params.err_isatty); - bool reading_excmds = !params.input_isatty && silent_mode + bool reading_excmds = !params.input_isatty + && silent_mode && exmode_active == EXMODE_NORMAL; if (reading_tty || reading_excmds) { // One of the startup commands (arguments, sourced scripts or plugins) may @@ -872,7 +874,7 @@ static void command_line_scan(mparm_T *parmp) exmode_active = EXMODE_NORMAL; break; } - case 'E': { // "-E" Improved Ex mode + case 'E': { // "-E" Ex mode exmode_active = EXMODE_VIM; break; } @@ -1896,8 +1898,8 @@ static void usage(void) mch_msg("\n"); mch_msg(_(" -b Binary mode\n")); mch_msg(_(" -d Diff mode\n")); - mch_msg(_(" -e, -E Ex mode, Improved Ex mode\n")); - mch_msg(_(" -es Silent (batch) mode\n")); + mch_msg(_(" -e, -E Ex mode\n")); + mch_msg(_(" -es, -Es Silent (batch) mode\n")); mch_msg(_(" -h, --help Print this help message\n")); mch_msg(_(" -i <shada> Use this shada file\n")); mch_msg(_(" -m Modifications (writing files) not allowed\n")); |