Mercurial > vim
comparison src/option.c @ 173:141a8ad5e2b3
updated for version 7.0053
author | vimboss |
---|---|
date | Sun, 27 Feb 2005 22:40:05 +0000 |
parents | 8c60f65311fa |
children | 7fd70926e2e1 |
comparison
equal
deleted
inserted
replaced
172:25cfd881cbba | 173:141a8ad5e2b3 |
---|---|
3144 #if !((defined(MSDOS) || defined(OS2) || defined(WIN3264)) && !defined(FEAT_GUI)) | 3144 #if !((defined(MSDOS) || defined(OS2) || defined(WIN3264)) && !defined(FEAT_GUI)) |
3145 { | 3145 { |
3146 /* | 3146 /* |
3147 * If 'background' wasn't set by the user, try guessing the value, | 3147 * If 'background' wasn't set by the user, try guessing the value, |
3148 * depending on the terminal name. Only need to check for terminals | 3148 * depending on the terminal name. Only need to check for terminals |
3149 * with a dark background, that can handle color. Only "linux" | 3149 * with a dark background, that can handle color. Recognized are: |
3150 * console at the moment. | 3150 * "linux" Linux console |
3151 * "screen.linux" Linux console with screen | |
3151 */ | 3152 */ |
3152 idx = findoption((char_u *)"bg"); | 3153 idx = findoption((char_u *)"bg"); |
3153 if (!(options[idx].flags & P_WAS_SET) && STRCMP(T_NAME, "linux") == 0) | 3154 if (!(options[idx].flags & P_WAS_SET) |
3155 && (STRCMP(T_NAME, "linux") == 0 | |
3156 || STRCMP(T_NAME, "screen.linux") == 0)) | |
3154 { | 3157 { |
3155 set_string_option_direct(NULL, idx, (char_u *)"dark", OPT_FREE); | 3158 set_string_option_direct(NULL, idx, (char_u *)"dark", OPT_FREE); |
3156 /* don't mark it as set, when starting the GUI it may be changed | 3159 /* don't mark it as set, when starting the GUI it may be changed |
3157 * again */ | 3160 * again */ |
3158 options[idx].flags &= ~P_WAS_SET; | 3161 options[idx].flags &= ~P_WAS_SET; |