mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
Removed FEAT_WINDOWS
Support for multiple windows and status line.
This commit is contained in:
@@ -176,7 +176,6 @@
|
|||||||
#define FEAT_WAK
|
#define FEAT_WAK
|
||||||
#define FEAT_WILDIGN
|
#define FEAT_WILDIGN
|
||||||
#define FEAT_WILDMENU
|
#define FEAT_WILDMENU
|
||||||
#define FEAT_WINDOWS
|
|
||||||
#define FEAT_WRITEBACK
|
#define FEAT_WRITEBACK
|
||||||
#define FEAT_HUGE
|
#define FEAT_HUGE
|
||||||
#define FEAT_BIG
|
#define FEAT_BIG
|
||||||
|
@@ -601,14 +601,12 @@ 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)
|
||||||
{
|
{
|
||||||
# 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,
|
(void)do_buffer(*eap->cmd == 's' ? DOBUF_SPLIT : DOBUF_GOTO,
|
||||||
start, dir, count, eap->forceit);
|
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') {
|
if (swap_exists_action == SEA_QUIT && *eap->cmd == 's') {
|
||||||
cleanup_T cs;
|
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
|
/* Restore the error/interrupt/exception state if not discarded by a
|
||||||
* new aborting error, interrupt, or uncaught exception. */
|
* new aborting error, interrupt, or uncaught exception. */
|
||||||
leave_cleanup(&cs);
|
leave_cleanup(&cs);
|
||||||
} else
|
} else {
|
||||||
handle_swap_exists(old_curbuf);
|
handle_swap_exists(old_curbuf);
|
||||||
# endif
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HAS_SWAP_EXISTS_ACTION) || defined(PROTO)
|
#if defined(HAS_SWAP_EXISTS_ACTION) || defined(PROTO)
|
||||||
|
@@ -1838,9 +1838,7 @@ int hex2nr(int c)
|
|||||||
return c - '0';
|
return c - '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(FEAT_TERMRESPONSE) \
|
#if defined(FEAT_TERMRESPONSE) || defined(FEAT_GUI_GTK) || defined(PROTO)
|
||||||
|| (defined(FEAT_GUI_GTK) && defined(FEAT_WINDOWS)) \
|
|
||||||
|| defined(PROTO)
|
|
||||||
|
|
||||||
/// Convert two hex characters to a byte.
|
/// Convert two hex characters to a byte.
|
||||||
/// Return -1 if one of the characters is not hex.
|
/// Return -1 if one of the characters is not hex.
|
||||||
@@ -1857,8 +1855,8 @@ int hexhex2nr(char_u *p)
|
|||||||
return (hex2nr(p[0]) << 4) + hex2nr(p[1]);
|
return (hex2nr(p[0]) << 4) + hex2nr(p[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // if defined(FEAT_TERMRESPONSE) || (defined(FEAT_GUI_GTK)
|
#endif // if defined(FEAT_TERMRESPONSE) || defined(FEAT_GUI_GTK)
|
||||||
// && defined(FEAT_WINDOWS)) || defined(PROTO)
|
// || defined(PROTO)
|
||||||
|
|
||||||
/// Return TRUE if "str" starts with a backslash that should be removed.
|
/// Return TRUE if "str" starts with a backslash that should be removed.
|
||||||
/// For WIN32 this is only done when the character after the
|
/// For WIN32 this is only done when the character after the
|
||||||
|
@@ -395,7 +395,6 @@ EXTERN int updating_screen INIT(= FALSE);
|
|||||||
* All windows are linked in a list. firstwin points to the first entry,
|
* All windows are linked in a list. firstwin points to the first entry,
|
||||||
* lastwin to the last entry (can be the same as firstwin) and curwin to the
|
* lastwin to the last entry (can be the same as firstwin) and curwin to the
|
||||||
* currently active window.
|
* currently active window.
|
||||||
* Without the FEAT_WINDOWS they are all equal.
|
|
||||||
*/
|
*/
|
||||||
EXTERN win_T *firstwin; /* first window */
|
EXTERN win_T *firstwin; /* first window */
|
||||||
EXTERN win_T *lastwin; /* last window */
|
EXTERN win_T *lastwin; /* last window */
|
||||||
|
@@ -363,9 +363,7 @@ int get_real_state(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(FEAT_SESSION) || defined(MSWIN) || defined(FEAT_GUI_MAC) \
|
#if defined(FEAT_SESSION) || defined(MSWIN) || defined(FEAT_GUI_MAC) \
|
||||||
|| ((defined(FEAT_GUI_GTK)) \
|
|| defined(FEAT_GUI_GTK) || defined(PROTO)
|
||||||
&& ( defined(FEAT_WINDOWS) || defined(FEAT_DND)) ) \
|
|
||||||
|| defined(PROTO)
|
|
||||||
/*
|
/*
|
||||||
* Change to a file's directory.
|
* Change to a file's directory.
|
||||||
* Caller must call shorten_fnames()!
|
* Caller must call shorten_fnames()!
|
||||||
|
@@ -165,8 +165,6 @@ int vim_ispathlistsep(int c)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(FEAT_GUI_TABLINE) || defined(FEAT_WINDOWS) \
|
|
||||||
|| defined(FEAT_EVAL) || defined(PROTO)
|
|
||||||
/*
|
/*
|
||||||
* Shorten the path of a file from "~/foo/../.bar/fname" to "~/f/../.b/fname"
|
* Shorten the path of a file from "~/foo/../.bar/fname" to "~/f/../.b/fname"
|
||||||
* It's done in-place.
|
* It's done in-place.
|
||||||
@@ -199,7 +197,6 @@ void shorten_dir(char_u *str)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return TRUE if the directory of "fname" exists, FALSE otherwise.
|
* Return TRUE if the directory of "fname" exists, FALSE otherwise.
|
||||||
|
@@ -2301,7 +2301,7 @@ win_line (
|
|||||||
int change_end = -1; /* last col of changed area */
|
int change_end = -1; /* last col of changed area */
|
||||||
colnr_T trailcol = MAXCOL; /* start of trailing spaces */
|
colnr_T trailcol = MAXCOL; /* start of trailing spaces */
|
||||||
int need_showbreak = FALSE;
|
int need_showbreak = FALSE;
|
||||||
#if defined(FEAT_SIGNS) || (defined(FEAT_QUICKFIX) && defined(FEAT_WINDOWS)) \
|
#if defined(FEAT_SIGNS) || defined(FEAT_QUICKFIX) \
|
||||||
|| defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
|
|| defined(FEAT_SYN_HL) || defined(FEAT_DIFF)
|
||||||
# define LINE_ATTR
|
# define LINE_ATTR
|
||||||
int line_attr = 0; /* attribute for the whole line */
|
int line_attr = 0; /* attribute for the whole line */
|
||||||
|
@@ -3137,7 +3137,7 @@ static void switch_to_8bit(void)
|
|||||||
static linenr_T orig_topline = 0;
|
static linenr_T orig_topline = 0;
|
||||||
static int orig_topfill = 0;
|
static int orig_topfill = 0;
|
||||||
#endif
|
#endif
|
||||||
#if (defined(FEAT_WINDOWS) && defined(CHECK_DOUBLE_CLICK)) || defined(PROTO)
|
#if defined(CHECK_DOUBLE_CLICK) || defined(PROTO)
|
||||||
/*
|
/*
|
||||||
* Checking for double clicks ourselves.
|
* Checking for double clicks ourselves.
|
||||||
* "orig_topline" is used to avoid detecting a double-click when the window
|
* "orig_topline" is used to avoid detecting a double-click when the window
|
||||||
|
@@ -2782,8 +2782,7 @@ void win_alloc_aucmd_win(void)
|
|||||||
/*
|
/*
|
||||||
* Allocate the first window or the first window in a new tab page.
|
* Allocate the first window or the first window in a new tab page.
|
||||||
* When "oldwin" is NULL create an empty buffer for it.
|
* When "oldwin" is NULL create an empty buffer for it.
|
||||||
* When "oldwin" is not NULL copy info from it to the new window (only with
|
* When "oldwin" is not NULL copy info from it to the new window.
|
||||||
* FEAT_WINDOWS).
|
|
||||||
* Return FAIL when something goes wrong (out of memory).
|
* Return FAIL when something goes wrong (out of memory).
|
||||||
*/
|
*/
|
||||||
static int win_alloc_firstwin(win_T *oldwin)
|
static int win_alloc_firstwin(win_T *oldwin)
|
||||||
|
Reference in New Issue
Block a user