Support backward-word-end when cursor is past end

Closes #12581
This commit is contained in:
Johannes Altmanninger
2026-03-29 16:27:09 +08:00
parent 7f6dcde5e0
commit 01ee6f968d
2 changed files with 7 additions and 3 deletions

View File

@@ -683,8 +683,8 @@ expect_str("foo-barqux")
expect_prompt()
sendline("bind ctrl-g backward-word-end")
sendline("echo 12" + control("g") + "3")
expect_str("123")
sendline("eco 12" + control("g") + "h")
expect_str("12")
expect_prompt()
# Check that the builtin version of `exit` works