fixup! Only disable WINCH handling in VTE

Apparently iTerm doesn't reflow?

See #7491
This commit is contained in:
Fabian Homborg 2020-11-30 20:50:02 +01:00
parent df137695bb
commit eb592092a6

View file

@ -242,9 +242,9 @@ function __fish_config_interactive -d "Initializations that should be performed
end end
function __fish_winch_handler --on-signal WINCH -d "Repaint screen when window changes size" function __fish_winch_handler --on-signal WINCH -d "Repaint screen when window changes size"
# VTE and iTerm reflow the text themselves, so us doing it inevitably races against them. # VTE reflows the text itself, so us doing it inevitably races against it.
# Guidance from the VTE developers is to let them repaint. # Guidance from the VTE developers is to let them repaint.
if set -q VTE_VERSION; or test "$TERM_PROGRAM" = "iTerm.app" if set -q VTE_VERSION
return return
end end
commandline -f repaint >/dev/null 2>/dev/null commandline -f repaint >/dev/null 2>/dev/null