mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 07:04:29 +00: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 inff62d172e5
but there does not appear to be a handler which actually redraws these. Revert offf62d172e5
This commit is contained in:
parent
5918bca1eb
commit
313bd558da
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,11 @@ impl VarDispatchTable {
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue