Files
fish-shell/tests/checks
Johannes Altmanninger 2b3bd29588 Fix infinite repaint when setting magic variables in prompt
Commit 7996637db5 (Make fish immediately show color changes again,
2025-12-01) repaints unnecessarily when a local unexported color
variable changes.  Also, it repaints when the change comes from
fish_prompt, causing an easy infinite loop.  Same when changing TERM,
COLORTERM and others.

This feature is relevant when using a color-theme aware theme, so
try to keep it. Repaint only on global/universal changes.
Also ignore changes if already repainting fish prompt.

This change may be at odds with concurrent execution (parser should
not care about whether we are repainting) but that's intentional
because of 1. time constraints and 2. I'm not sure what the solution
will look like; we could use the event infrastructure.  But a lot of
existing variable listeners don't use that.

Extract a context object we pass whenever we mutate the environment; While
at it, use it to pass EnvMode::USER, to reduce EnvMode responsibilities.

Fixes #12233
2025-12-30 17:20:42 +01:00
..
2025-06-23 13:53:43 +02:00
2025-12-08 21:19:43 +08:00
2025-12-21 12:21:25 +01:00
2025-12-17 10:27:24 +08:00
2025-04-18 20:22:30 +02:00
2025-12-29 16:19:48 +01:00
2025-12-05 16:06:22 +01:00
2025-03-13 18:13:10 +01:00
2025-06-05 14:10:47 +02:00
2024-04-21 14:35:13 +02:00
2025-03-13 18:13:10 +01:00
2025-11-23 12:30:22 +01:00
2025-03-13 18:13:10 +01:00
2025-10-11 18:02:57 +02:00
2025-01-26 20:30:48 -08:00