mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Defer escape bindings as well
This allows rebinding escape in the user list without breaking e.g. arrow keys (which send escape and then `[A` and similar, so escape is a prefix of them). Fixes #8428.
This commit is contained in:
@@ -319,6 +319,17 @@ send("\x07") # ctrl-g, kill bigword
|
||||
sendline("echo")
|
||||
expect_prompt("\nb c d")
|
||||
|
||||
# Test that overriding the escape binding works
|
||||
# and does not inhibit other escape sequences (up-arrow in this case).
|
||||
sendline("bind \\x1b 'echo foo'")
|
||||
expect_prompt()
|
||||
send("\x1b")
|
||||
expect_str("foo")
|
||||
send("\x1b[A")
|
||||
expect_str("bind \\x1b 'echo foo'")
|
||||
sendline("")
|
||||
expect_prompt()
|
||||
|
||||
send(" a b c d\x01") # ctrl-a, move back to the beginning of the line
|
||||
send("\x07") # ctrl-g, kill bigword
|
||||
sendline("echo")
|
||||
|
||||
Reference in New Issue
Block a user