From 8a585bb711e176435cce07503c37d91410c1df75 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 1 Jan 2021 20:21:45 +0100 Subject: [PATCH] Also disable winch handling in alacritty It also reflows. We might want to think about doing something more extensible here, as konsole is also about to add reflow, but for now the main problem children here are VTE and alacritty. Extends #7491. --- CHANGELOG.rst | 2 +- share/functions/__fish_config_interactive.fish | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7bb3e18f6..0700893be 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -209,7 +209,7 @@ Improved terminal support - An issue producing strange status output from commands involving ``not`` has been fixed (:issue:`6566`). - Long command lines are wrapped in all cases, instead of sometimes being put on a new line (:issue:`5118`). - The pager is properly rendered with long command lines selected (:issue:`2557`). -- Fish no longer performs its own resizing in VTE-based terminals, as they perform their own reflowing, which clashes especially with right prompts (:issue:`7491`). +- Fish no longer performs its own resizing in VTE-based terminals and alacritty, as they perform their own reflowing, which clashes especially with right prompts (:issue:`7491`). - Fish now sets terminal modes sooner, which stops output from appearing before the greeting and prompt are ready (:issue:`7489`). Completions diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish index 68209dd2b..35c557f25 100644 --- a/share/functions/__fish_config_interactive.fish +++ b/share/functions/__fish_config_interactive.fish @@ -247,6 +247,10 @@ function __fish_config_interactive -d "Initializations that should be performed if set -q VTE_VERSION return end + # Same for alacritty + if string match -q -- 'alacritty*' $TERM + return + end commandline -f repaint >/dev/null 2>/dev/null end