54143: Bind '_' to vi-first-non-blank in vicmd keymap

This commit is contained in:
Aidan Van Duyne
2025-12-07 17:59:03 -08:00
committed by Oliver Kiddle
parent af47b22167
commit e97e326c16
3 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
2025-12-16 Oliver Kiddle <opk@zsh.org>
* Aidan Van Duyne: 54143: Src/Zle/zle_bindings.c,
Doc/Zsh/zle.yo: Bind '_' to vi-first-non-blank in vicmd keymap
* 54147: Src/Zle/termquery.c: avoid buffer overflow with
terminal sequences

View File

@@ -1328,7 +1328,7 @@ Read a character from the keyboard, and move to
the position just after the previous occurrence of it in the line.
)
tindex(vi-first-non-blank)
item(tt(vi-first-non-blank) (unbound) (tt(^)) (unbound))(
item(tt(vi-first-non-blank) (unbound) (tt(_ ^)) (unbound))(
Move to the first non-blank character in the line.
)
tindex(vi-forward-word)

View File

@@ -385,7 +385,7 @@ int vicmdbind[128] = {
/* \ */ z_undefinedkey,
/* ] */ z_undefinedkey,
/* ^ */ z_vifirstnonblank,
/* _ */ z_undefinedkey,
/* _ */ z_vifirstnonblank,
/* ` */ z_vigotomark,
/* a */ z_viaddnext,
/* b */ z_vibackwardword,