mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
Resume repainting command line when colors change
This restores a hack to trigger a command line repaint when "$fish_color_*" or "$fish_pager_color_*" changes. These allow the command line to react immediately to changes in other sessions or web_config. This was removed inff62d172e5but there does not appear to be a handler which actually redraws these. Revert offf62d172e5
This commit is contained in:
@@ -122,6 +122,11 @@ pub fn dispatch(&self, key: &wstr, vars: &EnvStack) {
|
||||
Some(EnvCallback::Anon(anon)) => (anon)(vars),
|
||||
None => (),
|
||||
}
|
||||
// Hack to redraw the prompt and command line when fish_color_* or fish_pager_color_* changes.
|
||||
// This allows the command line to react immediately to color changes in other shells.
|
||||
if key.starts_with("fish_color_") || key.starts_with("fish_pager_color_") {
|
||||
reader_schedule_prompt_repaint();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user