From 47d45f49e4fe326a044fdd6de7c409211d65b56e Mon Sep 17 00:00:00 2001 From: Guy Bolton King Date: Mon, 4 Jul 2022 12:11:39 +0100 Subject: [PATCH] Remove invalid trailing period in CSI u shift-space binding (cherry picked from commit 1f130fbfe1feb981dc06c94e5f829d37b92f92fe) --- CHANGELOG.rst | 1 + share/functions/__fish_shared_key_bindings.fish | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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