Skip to content

Commit

Permalink
fixup! Only disable WINCH handling in VTE
Browse files Browse the repository at this point in the history
Apparently iTerm doesn't reflow?

See #7491
  • Loading branch information
faho committed Nov 30, 2020
1 parent df13769 commit eb59209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/functions/__fish_config_interactive.fish
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ function __fish_config_interactive -d "Initializations that should be performed
end

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.
if set -q VTE_VERSION; or test "$TERM_PROGRAM" = "iTerm.app"
if set -q VTE_VERSION
return
end
commandline -f repaint >/dev/null 2>/dev/null
Expand Down

0 comments on commit eb59209

Please sign in to comment.