mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 05:48:17 +00:00
Removed FEAT_WINDOWS
Support for multiple windows and status line.
This commit is contained in:
@@ -601,14 +601,12 @@ static void clear_wininfo(buf_T *buf)
|
||||
*/
|
||||
void goto_buffer(exarg_T *eap, int start, int dir, int count)
|
||||
{
|
||||
# if defined(FEAT_WINDOWS) && defined(HAS_SWAP_EXISTS_ACTION)
|
||||
buf_T *old_curbuf = curbuf;
|
||||
|
||||
swap_exists_action = SEA_DIALOG;
|
||||
# endif
|
||||
(void)do_buffer(*eap->cmd == 's' ? DOBUF_SPLIT : DOBUF_GOTO,
|
||||
start, dir, count, eap->forceit);
|
||||
# if defined(FEAT_WINDOWS) && defined(HAS_SWAP_EXISTS_ACTION)
|
||||
#ifdef HAS_SWAP_EXISTS_ACTION
|
||||
buf_T *old_curbuf = curbuf;
|
||||
swap_exists_action = SEA_DIALOG;
|
||||
|
||||
if (swap_exists_action == SEA_QUIT && *eap->cmd == 's') {
|
||||
cleanup_T cs;
|
||||
|
||||
@@ -624,9 +622,10 @@ void goto_buffer(exarg_T *eap, int start, int dir, int count)
|
||||
/* Restore the error/interrupt/exception state if not discarded by a
|
||||
* new aborting error, interrupt, or uncaught exception. */
|
||||
leave_cleanup(&cs);
|
||||
} else
|
||||
} else {
|
||||
handle_swap_exists(old_curbuf);
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(HAS_SWAP_EXISTS_ACTION) || defined(PROTO)
|
||||
|
Reference in New Issue
Block a user