Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove invalid trailing period in CSI u shift-space binding #9054

Merged
merged 1 commit into from
Jul 4, 2022
Merged

Remove invalid trailing period in CSI u shift-space binding #9054

merged 1 commit into from
Jul 4, 2022

Conversation

guyboltonking
Copy link
Contributor

@guyboltonking guyboltonking commented Jul 4, 2022

Description

Removes a trailing period that resulted in the following error:

commandline: Unknown input function 'expand-abbr.'
(Type 'help commandline' for related documentation)

...when typing shift-space.

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@guyboltonking guyboltonking marked this pull request as ready for review July 4, 2022 11:18
@@ -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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, will add to the 3.5.1 branch.

For the record, here's how to reproduce the problem with xterm:

printf '%s\n' 'XTerm.vt100.formatOtherKeys: 1' 'XTerm.vt100.modifyOtherKeys: 2' | xrdb && xterm -e fish

@krobelus krobelus added this to the fish 3.5.1 milestone Jul 4, 2022
@krobelus krobelus merged commit 1f130fb into fish-shell:master Jul 4, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants