diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0ff23e4ef..adf4c0230 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,7 @@ fish 3.5.1 (released ???) This release of fish fixes the following problems identified in fish 3.5.0: - A change in the completion script for ``git`` caused problems when completing ``git blame`` or ``git -C``, which has been fixed (:issue:`9053`). +- On terminals that emit a CSI u sequence for :kbd:`Shift-Space`, fish inserts a space instead of printing an error. (:issue:`9054`). -------------- diff --git a/share/functions/__fish_shared_key_bindings.fish b/share/functions/__fish_shared_key_bindings.fish index 9633be3de..cdc70d601 100644 --- a/share/functions/__fish_shared_key_bindings.fish +++ b/share/functions/__fish_shared_key_bindings.fish @@ -188,7 +188,7 @@ function __fish_shared_key_bindings -d "Bindings shared between emacs and vi mod # Ctrl-space inserts space without expanding abbrs bind --preset $argv -k nul 'test -n "$(commandline)" && commandline -i " "' # Shift-space (CSI u escape sequence) behaves like space because it's easy to mistype. - bind --preset $argv \e\[32\;2u 'commandline -i " "; commandline -f expand-abbr'. + bind --preset $argv \e\[32\;2u 'commandline -i " "; commandline -f expand-abbr' bind --preset $argv \n execute