Files
fish-shell/tests/checks
Johannes Altmanninger 107e4d11de Fix Vi mode glitch when replacing at last character
Another regression from d51f669647 (Vi mode: avoid placing cursor beyond last
character, 2024-02-14) "Unfortunately Vi mode sometimes needs to temporarily
select past end". So do the replace_one mode bindings which were forgotten.

Fix this.

This surfaces a tricky problem: when we use something like

	bind '' self-insert some-command

When key event "x" matches this generic binding, we insert both "self-insert"
and "some-command" at the front of the queue, and do *not* consume "x",
since the binding is empty.

Since there is a command (that might call "exit"), we insert a check-exit
event too, after "self-insert some-command" but _before_ "x".

The check-exit event makes "self-insert" do nothing. I don't think there's a
good reason for this; self-insert can only be triggered by a key event that
maps to self-insert; so there must always be a real key available for it to
consume. A "commandline -f self-insert" is a nop. Skip check-exit here.

Fixes #11484
2025-05-13 00:01:11 +02:00
..
2025-01-26 20:30:48 -08:00
2025-01-26 20:30:48 -08:00
2024-12-29 13:37:28 +01:00
2025-04-18 20:22:30 +02:00
2024-04-25 21:52:56 +02:00
2025-03-13 18:13:10 +01:00
2024-05-26 22:06:11 -05:00
2025-05-03 22:53:27 +02:00
2024-04-21 14:35:13 +02:00
2025-03-13 18:13:10 +01:00
2025-05-11 22:55:48 +02:00
2025-04-11 15:11:22 +02:00
2025-04-29 13:31:13 +02:00
2025-03-13 18:13:10 +01:00
2025-01-08 19:10:38 +01:00
2025-01-26 20:30:48 -08:00