99017b8eac3d7d0e5ba01c7bf0cf9c6d38985536

Author
Alexey Trofimenko <aronaxis@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

fix(key-bindings): ensure `<Esc-l>` works if line is not empty (#13391)

Diff

 1diff --git a/lib/key-bindings.zsh b/lib/key-bindings.zsh
 2index bf5d4ba30df294844e09850a5143cb5891bacc15..0d2cecb6a4dd5f3d177eaf8667764f0ab3997458 100644
 3--- a/lib/key-bindings.zsh
 4+++ b/lib/key-bindings.zsh
 5@@ -112,7 +112,7 @@ bindkey -M vicmd '^[[1;5D' backward-word
 6 
 7 
 8 bindkey '\ew' kill-region                             # [Esc-w] - Kill from the cursor to the mark
 9-bindkey -s '\el' 'ls\n'                               # [Esc-l] - run command: ls
10+bindkey -s '\el' '^q ls\n'                            # [Esc-l] - run command: ls
11 bindkey '^r' history-incremental-search-backward      # [Ctrl-r] - Search backward incrementally for a specified string. The string may begin with ^ to anchor the search to the beginning of the line.
12 bindkey ' ' magic-space                               # [Space] - don't do history expansion
13