aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-17 22:02:46 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-17 22:02:46 +0200
commitce7cba6d7f36e79d52825215ba7b6848397b0440 (patch)
treecf249b863e9bfa1a6943b91dc293cc38bf71f6a7 /src/nvim/buffer.c
parent7debba9d4295f09bc338a5f0718abdc54d565a56 (diff)
parent2eb9150a4fcb8f43599e5f470cbcb3a12195d910 (diff)
downloadrneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.gz
rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.tar.bz2
rneovim-ce7cba6d7f36e79d52825215ba7b6848397b0440.zip
Merge #6533 'Fix PVS-studio warnings'
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 292eb03a16..e48b7846ae 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -741,12 +741,13 @@ static void clear_wininfo(buf_T *buf)
*/
void goto_buffer(exarg_T *eap, int start, int dir, int count)
{
- (void)do_buffer(*eap->cmd == 's' ? DOBUF_SPLIT : DOBUF_GOTO,
- start, dir, count, eap->forceit);
bufref_T old_curbuf;
set_bufref(&old_curbuf, curbuf);
swap_exists_action = SEA_DIALOG;
+ (void)do_buffer(*eap->cmd == 's' ? DOBUF_SPLIT : DOBUF_GOTO,
+ start, dir, count, eap->forceit);
+
if (swap_exists_action == SEA_QUIT && *eap->cmd == 's') {
cleanup_T cs;