summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-06-25 17:03:36 +0200
committerBram Moolenaar <Bram@vim.org>2015-06-25 17:03:36 +0200
commitb5c3265521749fda81ae4b052de35a0d1209cf50 (patch)
treec4e09817745505a3e66db6f65a72fa5cf63f4708 /src/main.c
parent367fbf17dad7bfb65cef8a4a18147989516218f2 (diff)
patch 7.4.757v7.4.757
Problem: Cannot detect the background color of a terminal. Solution: Add T_RBG to request the background color if possible. (Lubomir Rintel)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d20c4b0958..d9202c2e56 100644
--- a/src/main.c
+++ b/src/main.c
@@ -837,8 +837,11 @@ vim_main2(int argc UNUSED, char **argv UNUSED)
starttermcap(); /* start termcap if not done by wait_return() */
TIME_MSG("start termcap");
-#if defined(FEAT_TERMRESPONSE) && defined(FEAT_MBYTE)
+#if defined(FEAT_TERMRESPONSE)
+# if defined(FEAT_MBYTE)
may_req_ambiguous_char_width();
+# endif
+ may_req_bg_color();
#endif
#ifdef FEAT_MOUSE