mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
options: Default t_Co to 256.
This commit doesn't change any behavior, only moves the init out of main.c We
_could_ move some initialization from tui.c:terminfo_start to an earlier phase,
in order to avoid mis-reporting 't_Co' during startup. But this will be messy,
and gains very little: TERM=linux works "good enough" as long as we correct t_Co
in tui.c:terminfo_start (c5b02d5a7
).
This commit is contained in:
@@ -414,7 +414,7 @@ EXTERN int provider_call_nesting INIT(= 0);
|
|||||||
EXTERN char_u hash_removed;
|
EXTERN char_u hash_removed;
|
||||||
|
|
||||||
|
|
||||||
EXTERN int t_colors INIT(= 0); /* int value of T_CCO */
|
EXTERN int t_colors INIT(= 256); // int value of T_CCO
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When highlight_match is TRUE, highlight a match, starting at the cursor
|
* When highlight_match is TRUE, highlight a match, starting at the cursor
|
||||||
|
@@ -276,7 +276,6 @@ int main(int argc, char **argv)
|
|||||||
printf(_("%d files to edit\n"), GARGCOUNT);
|
printf(_("%d files to edit\n"), GARGCOUNT);
|
||||||
|
|
||||||
full_screen = true;
|
full_screen = true;
|
||||||
t_colors = 256;
|
|
||||||
check_tty(¶ms);
|
check_tty(¶ms);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1671,8 +1670,6 @@ static bool do_user_initialization(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Source startup scripts
|
/// Source startup scripts
|
||||||
///
|
|
||||||
/// @param[in]
|
|
||||||
static void source_startup_scripts(const mparm_T *const parmp)
|
static void source_startup_scripts(const mparm_T *const parmp)
|
||||||
FUNC_ATTR_NONNULL_ALL
|
FUNC_ATTR_NONNULL_ALL
|
||||||
{
|
{
|
||||||
|
@@ -4404,6 +4404,7 @@ bool get_tty_option(char *name, char **value)
|
|||||||
|
|
||||||
if (is_tty_option(name)) {
|
if (is_tty_option(name)) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
// XXX: All other t_* options were removed in 3baba1e7.
|
||||||
*value = xstrdup("");
|
*value = xstrdup("");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user