From dea784161107a1bb9ce550d068b439a4e19af20f Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 25 Oct 2024 22:47:20 +0200 Subject: [PATCH] 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). --- share/functions/fish_vi_key_bindings.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index 9dde3deb1..fdcf56848 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -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