Revert "Revert "Factor repainting decions from readline commands better in the reader""

This reverts commit eb86bf23e8.

This reintroduces the refactoring; the next two commits fix the
regressions identified in it.
This commit is contained in:
ridiculousfish
2020-08-23 15:12:47 -07:00
parent ed212c631c
commit 6d339df612
7 changed files with 314 additions and 304 deletions

View File

@@ -197,7 +197,7 @@ void env_dispatch_var_change(const wcstring &key, env_stack_t &vars) {
// Eww.
if (string_prefixes_string(L"fish_color_", key)) {
reader_react_to_color_change();
reader_schedule_prompt_repaint();
}
}
@@ -220,7 +220,7 @@ void env_universal_callbacks(env_stack_t *stack, const callback_data_list_t &cal
static void handle_fish_term_change(const env_stack_t &vars) {
update_fish_color_support(vars);
reader_react_to_color_change();
reader_schedule_prompt_repaint();
}
static void handle_change_ambiguous_width(const env_stack_t &vars) {