diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-10-13 00:13:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-13 00:13:39 +0200 |
commit | 51937e1322de0e4348c217947c117f54f3c664c3 (patch) | |
tree | 65be4944976933d8c096cff724c10636b7c102b2 /src/nvim/edit.c | |
parent | e9fd1244b799ab4fc79cc734e780aceaa79c4a04 (diff) | |
parent | 6b7faf22f4c2a7cdfeae5a8bd72674252a7740d7 (diff) | |
download | rneovim-51937e1322de0e4348c217947c117f54f3c664c3.tar.gz rneovim-51937e1322de0e4348c217947c117f54f3c664c3.tar.bz2 rneovim-51937e1322de0e4348c217947c117f54f3c664c3.zip |
Merge #5470 from justinmk/pr5445
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 892748ff5c..51c9fb1556 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -1286,10 +1286,9 @@ bool edit(int cmdchar, bool startln, long count) { if (curbuf->terminal) { if (ex_normal_busy) { - // don't enter terminal mode from `ex_normal`, which can result in all - // kinds of havoc(such as terminal mode recursiveness). Instead, set a - // flag that allow us to force-set the value of `restart_edit` before - // `ex_normal` returns + // Do not enter terminal mode from ex_normal(), which would cause havoc + // (such as terminal-mode recursiveness). Instead set a flag to force-set + // the value of `restart_edit` before `ex_normal` returns. restart_edit = 'i'; force_restart_edit = true; } else { |