From ff62d172e5cd4676c2bc095cfe3d0379e71cf2c7 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 11 Dec 2020 18:43:04 +0100 Subject: [PATCH] Stop repainting in C++ We already have a variable handler, there is no need to repaint twice. --- src/env_dispatch.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/env_dispatch.cpp b/src/env_dispatch.cpp index 2758348b5..35052206f 100644 --- a/src/env_dispatch.cpp +++ b/src/env_dispatch.cpp @@ -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