mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-27 02:03:09 +08:00

Inserting Tab or Backspace characters causes weird glitches. Sometimes it's useful to paste tabs as part of a code block. Render tabs as "␉" and so on for other ASCII control characters, see https://unicode-table.com/en/blocks/control-pictures/. This fixes the width-related glitches. You can see it in action by inserting some control characters into the command line: set chars for x in (seq 1 0x1F) set -a chars (printf "%02x\\\\x%02x" $x $x) end eval set chars $chars commandline -i "echo '" $chars Fixes #6923 Fixes #5274 Closes #7295 We could extend this approach to display a fallback symbol for every unknown nonprintable character, not just ASCII control characters. In future we might want to support tab properly.