Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 83416
Collapse All | Expand All

(-)src/option.c (-3 / +7 lines)
Lines 3109-3119 Link Here
3109
	/*
3109
	/*
3110
	 * If 'background' wasn't set by the user, try guessing the value,
3110
	 * If 'background' wasn't set by the user, try guessing the value,
3111
	 * depending on the terminal name.  Only need to check for terminals
3111
	 * depending on the terminal name.  Only need to check for terminals
3112
	 * with a dark background, that can handle color.  Only "linux"
3112
	 * with a dark background, that can handle color.  We recognise:
3113
	 * console at the moment.
3113
	 *   * 'linux'           -- linux console
3114
	 *   * 'screen.linux'    -- linux console, with screen
3114
	 */
3115
	 */
3115
	idx = findoption((char_u *)"bg");
3116
	idx = findoption((char_u *)"bg");
3116
	if (!(options[idx].flags & P_WAS_SET) && STRCMP(T_NAME, "linux") == 0)
3117
	if (!(options[idx].flags & P_WAS_SET) && (
3118
		    (STRCMP(T_NAME, "linux") == 0) ||
3119
		    (STRCMP(T_NAME, "screen.linux") == 0)
3120
		))
3117
	{
3121
	{
3118
	    set_string_option_direct(NULL, idx, (char_u *)"dark", OPT_FREE);
3122
	    set_string_option_direct(NULL, idx, (char_u *)"dark", OPT_FREE);
3119
	    /* don't mark it as set, when starting the GUI it may be changed
3123
	    /* don't mark it as set, when starting the GUI it may be changed

Return to bug 83416