summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-02-27 22:40:05 +0000
committerBram Moolenaar <Bram@vim.org>2005-02-27 22:40:05 +0000
commita21b29a2fc8f006103f5fe52b9da7da7eca71af5 (patch)
tree802163110bc4cce173f266036fa688eeb15a3d4e /src/option.c
parent78cb7d249e3d494d9b763cf45e1c92531d706377 (diff)
downloadvim-git-a21b29a2fc8f006103f5fe52b9da7da7eca71af5.tar.gz
updated for version 7.0053
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/option.c b/src/option.c
index fd9f75f11..5cf1b4620 100644
--- a/src/option.c
+++ b/src/option.c
@@ -3146,11 +3146,14 @@ set_init_2()
/*
* If 'background' wasn't set by the user, try guessing the value,
* depending on the terminal name. Only need to check for terminals
- * with a dark background, that can handle color. Only "linux"
- * console at the moment.
+ * with a dark background, that can handle color. Recognized are:
+ * "linux" Linux console
+ * "screen.linux" Linux console with screen
*/
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);
/* don't mark it as set, when starting the GUI it may be changed