mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 18:58:18 +00:00
buffer: Adjust where do_buffer call is located
It is located there in Vim, but in dd7657c160
position was for some reason swapped.
This commit is contained in:
@@ -741,12 +741,13 @@ static void clear_wininfo(buf_T *buf)
|
|||||||
*/
|
*/
|
||||||
void goto_buffer(exarg_T *eap, int start, int dir, int count)
|
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;
|
bufref_T old_curbuf;
|
||||||
set_bufref(&old_curbuf, curbuf);
|
set_bufref(&old_curbuf, curbuf);
|
||||||
swap_exists_action = SEA_DIALOG;
|
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') {
|
if (swap_exists_action == SEA_QUIT && *eap->cmd == 's') {
|
||||||
cleanup_T cs;
|
cleanup_T cs;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user