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 in ff62d172e5 but there does not
appear to be a handler which actually redraws these.

Revert of ff62d172e5
This commit is contained in:
Peter Ammon 2024-08-24 15:02:14 -07:00
parent 5918bca1eb
commit 313bd558da
No known key found for this signature in database

View file

@ -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();
}
}
}