diff options
author | Harm te Hennepe <harm@tehennepe.org> | 2016-10-07 16:19:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-10-12 14:56:20 +0200 |
commit | 538255c228acb59b6596011627abd2f6e0fa67d1 (patch) | |
tree | 827a65c2fb2be2f6459ce712205cc33a5ae822e3 /src/nvim/ex_docmd.c | |
parent | cb351c678bffa061426075ba6068188ce71c4ae6 (diff) | |
download | rneovim-538255c228acb59b6596011627abd2f6e0fa67d1.tar.gz rneovim-538255c228acb59b6596011627abd2f6e0fa67d1.tar.bz2 rneovim-538255c228acb59b6596011627abd2f6e0fa67d1.zip |
terminal: Move re-edit detection to do_ecmd(). #5445
Closes #4784
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 45407b7f12..828ef5f133 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -6726,11 +6726,6 @@ do_exedit ( old_curwin == NULL ? curwin : NULL); } else if ((eap->cmdidx != CMD_split && eap->cmdidx != CMD_vsplit) || *eap->arg != NUL) { - // ":edit <blank>" is a no-op in terminal buffers. #2822 - if (curbuf->terminal != NULL && eap->cmdidx == CMD_edit && *eap->arg == NUL) { - return; - } - /* Can't edit another file when "curbuf_lock" is set. Only ":edit" * can bring us here, others are stopped earlier. */ if (*eap->arg != NUL && curbuf_locked()) |