diff options
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Doc/Zsh/zle.yo | 2 | ||||
| -rw-r--r-- | Src/Zle/zle_bindings.c | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -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 diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index a0d97a0c8..8c1cd078d 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -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) diff --git a/Src/Zle/zle_bindings.c b/Src/Zle/zle_bindings.c index 55863db1b..74a62ab4d 100644 --- a/Src/Zle/zle_bindings.c +++ b/Src/Zle/zle_bindings.c @@ -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, |
