diff options
author | ZyX <kp-pav@yandex.ru> | 2017-04-16 23:58:32 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-04-16 23:58:32 +0300 |
commit | 2eb9150a4fcb8f43599e5f470cbcb3a12195d910 (patch) | |
tree | 0394cb0c5db249a9a8238ab947457d1c4d608bb2 | |
parent | 58300d70d26969546e204983f8b4e505771ec8dd (diff) | |
download | rneovim-2eb9150a4fcb8f43599e5f470cbcb3a12195d910.tar.gz rneovim-2eb9150a4fcb8f43599e5f470cbcb3a12195d910.tar.bz2 rneovim-2eb9150a4fcb8f43599e5f470cbcb3a12195d910.zip |
buffer: Adjust where do_buffer call is located
It is located there in Vim, but in dd7657c1605246e8f7ade35184069a09dc254e84
position was for some reason swapped.
-rw-r--r-- | src/nvim/buffer.c | 5 |
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; |