From ce31c21c7d7732e43cae2703a8bd54d70763cc5d Mon Sep 17 00:00:00 2001 From: Michael Budde Date: Fri, 1 Jul 2016 11:21:45 +0200 Subject: [PATCH] Fix regression of :drop introduced in 1a91000 A single line was deleted from `ex_drop()` in 1a91000 when fixing clint warnings causing the `:drop` command to not work correctly if the buffer is not already open in a window. Fixes #4981 --- src/nvim/ex_cmds2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index e7f51326c4..40074f726c 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -3533,5 +3533,6 @@ void ex_drop(exarg_T *eap) } else { eap->cmdidx = CMD_first; } + ex_rewind(eap); } }