diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-04-20 10:46:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 10:46:20 +0200 |
commit | 3f712185058f7dca9fded0d49b333929d3f8558d (patch) | |
tree | 0bebfea662700b84b45edc525b3d15357baa6698 /src | |
parent | 477e1a86481dc9a900b226f604ffff9859494b54 (diff) | |
parent | b3fd83a0eae2d6353dc72ed62ba32949cc11a1b0 (diff) | |
download | rneovim-3f712185058f7dca9fded0d49b333929d3f8558d.tar.gz rneovim-3f712185058f7dca9fded0d49b333929d3f8558d.tar.bz2 rneovim-3f712185058f7dca9fded0d49b333929d3f8558d.zip |
Merge pull request #9926 from glacambre/fix_9889
Fix #9889: stopinsert prohibiting terminal mode
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/terminal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index 79b0df842f..a802a1ffc6 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -374,6 +374,7 @@ void terminal_enter(void) TerminalState state, *s = &state; memset(s, 0, sizeof(TerminalState)); s->term = buf->terminal; + stop_insert_mode = false; // Ensure the terminal is properly sized. Ideally window size management // code should always have resized the terminal already, but check here to @@ -435,7 +436,6 @@ void terminal_enter(void) static int terminal_check(VimState *state) { if (stop_insert_mode) { - stop_insert_mode = false; return 0; } return 1; |