mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.0053
This commit is contained in:
parent
78cb7d249e
commit
a21b29a2fc
@ -3146,11 +3146,14 @@ set_init_2()
|
|||||||
/*
|
/*
|
||||||
* If 'background' wasn't set by the user, try guessing the value,
|
* If 'background' wasn't set by the user, try guessing the value,
|
||||||
* depending on the terminal name. Only need to check for terminals
|
* depending on the terminal name. Only need to check for terminals
|
||||||
* with a dark background, that can handle color. Only "linux"
|
* with a dark background, that can handle color. Recognized are:
|
||||||
* console at the moment.
|
* "linux" Linux console
|
||||||
|
* "screen.linux" Linux console with screen
|
||||||
*/
|
*/
|
||||||
idx = findoption((char_u *)"bg");
|
idx = findoption((char_u *)"bg");
|
||||||
if (!(options[idx].flags & P_WAS_SET) && STRCMP(T_NAME, "linux") == 0)
|
if (!(options[idx].flags & P_WAS_SET)
|
||||||
|
&& (STRCMP(T_NAME, "linux") == 0
|
||||||
|
|| STRCMP(T_NAME, "screen.linux") == 0))
|
||||||
{
|
{
|
||||||
set_string_option_direct(NULL, idx, (char_u *)"dark", OPT_FREE);
|
set_string_option_direct(NULL, idx, (char_u *)"dark", OPT_FREE);
|
||||||
/* don't mark it as set, when starting the GUI it may be changed
|
/* don't mark it as set, when starting the GUI it may be changed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user