diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6f1d442d3..5c124ad77 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,7 @@ fish 4.1.2 (released ???) This release fixes the following regressions identified in 4.1.0: - Fixed spurious error output when completing remote file paths for ``scp`` (:issue:`11860`). +- Fixed the :kbd:`alt-l` binding not formatting ``ls`` output correctly (one entry per line, no colors) (:issue:`11888`). - Fixed an issue where focus events (currently only enabled in ``tmux``) would cause multiline prompts to be redrawn in the wrong line (:issue:`11870`). - Stopped printing output that would cause a glitch on old versions of Midnight Commander (:issue:`11869`). - Added a fix for some configurations of Zellij where :kbd:`escape` key processing was delayed (:issue:`11868`). diff --git a/share/functions/__fish_echo.fish b/share/functions/__fish_echo.fish index 8b148353b..2e50ee031 100644 --- a/share/functions/__fish_echo.fish +++ b/share/functions/__fish_echo.fish @@ -10,7 +10,8 @@ set -l erase_line "$( function __fish_echo --inherit-variable erase_line --description 'run the given command after the current commandline and redraw the prompt' set -l line (commandline --line) string >&2 repeat -N \n --count=(math (commandline | count) - $line + 1) - printf %s\n $erase_line($argv) >&2 + printf %s $erase_line >&2 + $argv >&2 string >&2 repeat -N \n --count=(math (count (fish_prompt)) - 1) string >&2 repeat -N \n --count=(math $line - 1) commandline -f repaint