Stop repainting in C++

We already have a variable handler, there is no need to repaint twice.
This commit is contained in:
Fabian Homborg 2020-12-11 18:43:04 +01:00
parent a4e2a3c049
commit ff62d172e5

View file

@ -195,11 +195,6 @@ void env_dispatch_var_change(const wcstring &key, env_stack_t &vars) {
if (!s_var_dispatch_table) return;
s_var_dispatch_table->dispatch(key, vars);
// Eww.
if (string_prefixes_string(L"fish_color_", key)) {
reader_schedule_prompt_repaint();
}
}
/// Universal variable callback function. This function makes sure the proper events are triggered