aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Budde <mbu@jobindex.dk>2016-07-01 11:21:45 +0200
committerMichael Budde <mbu@jobindex.dk>2016-07-01 11:42:18 +0200
commitce31c21c7d7732e43cae2703a8bd54d70763cc5d (patch)
treee71a2bce71613a322160691dd184ae477bf080a0
parent0d5edcef4a34bd0de4cf1eb267b8a40ed12e32fa (diff)
downloadrneovim-ce31c21c7d7732e43cae2703a8bd54d70763cc5d.tar.gz
rneovim-ce31c21c7d7732e43cae2703a8bd54d70763cc5d.tar.bz2
rneovim-ce31c21c7d7732e43cae2703a8bd54d70763cc5d.zip
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
-rw-r--r--src/nvim/ex_cmds2.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}