aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-25 03:00:38 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-25 16:00:17 -0700
commit0c9a1a56c22de9a34d678898168a30aeda86b1a3 (patch)
tree193666081f64ea1b9f9beb68f05bf1eb9097881d /env.cpp
parentc0655b6b08222a32b267cff4f7fbdf6d1472c910 (diff)
Lots of work on web config
Change to make fish immediately show color changes
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/env.cpp b/env.cpp
index 205562a1..645dca02 100644
--- a/env.cpp
+++ b/env.cpp
@@ -341,7 +341,9 @@ static void react_to_variable_change(const wcstring &key) {
handle_locale();
} else if (key == L"fish_term256") {
update_fish_term256();
- reader_repaint_needed();
+ reader_react_to_color_change();
+ } else if (string_prefixes_string(L"fish_color_", key)) {
+ reader_react_to_color_change();
}
}
@@ -355,11 +357,6 @@ static void universal_callback( int type,
{
const wchar_t *str=0;
- if( var_is_locale( name ) )
- {
- handle_locale();
- }
-
switch( type )
{
case SET:
@@ -388,6 +385,9 @@ static void universal_callback( int type,
event_fire( &ev );
ev.arguments.reset(NULL);
}
+
+ if (name)
+ react_to_variable_change(name);
}
/**