diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-06 14:57:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-06 14:57:49 +0200 |
commit | 6d8197485dc84532e37aced2c39292bff374200d (patch) | |
tree | c0aeccff87e3a4b26805d099a9d952a1b6bee773 /src/main.c | |
parent | 39d21e3c30f3391f3b27f5ddb7e1ad411bdb8f2e (diff) | |
download | vim-git-6d8197485dc84532e37aced2c39292bff374200d.tar.gz |
patch 8.0.0877: using CTRL-\ CTRL-N in terminal is inconsistentv8.0.0877
Problem: Using CTRL-\ CTRL-N in terminal is inconsistent.
Solution: Stay in Normal mode.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 615858bcc..4b787a334 100644 --- a/src/main.c +++ b/src/main.c @@ -1356,13 +1356,13 @@ main_loop( else { #ifdef FEAT_TERMINAL - if (term_use_loop(TRUE) + if (term_use_loop() && oa.op_type == OP_NOP && oa.regname == NUL && !VIsual_active) { /* If terminal_loop() returns OK we got a key that is handled - * in Normal model. With FAIL the terminal was closed and the - * screen needs to be redrawn. */ + * in Normal model. With FAIL we first need to position the + * cursor and the screen needs to be redrawn. */ if (terminal_loop() == OK) normal_cmd(&oa, TRUE); } |