Fix Vi replace mode regression not being able to append to command line

Regressed in d51f66964 (Vi mode: avoid placing cursor beyond last
character, 2024-02-14).
This commit is contained in:
Johannes Altmanninger 2024-10-25 22:47:20 +02:00
parent c2cde317f2
commit dea7841611

View File

@ -354,7 +354,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish'
set -g fish_cursor_selection_mode inclusive
function __fish_vi_key_bindings_on_mode_change --on-variable fish_bind_mode
switch $fish_bind_mode
case insert
case insert replace
set -g fish_cursor_end_mode exclusive
case '*'
set -g fish_cursor_end_mode inclusive