Fixed line editing detection for bind
This commit is contained in:
@@ -158,8 +158,8 @@ _bind(){
|
|||||||
|
|
||||||
# Keyboard shortcuts for commits
|
# Keyboard shortcuts for commits
|
||||||
if [[ "$git_keyboard_shortcuts_enabled" = "true" ]]; then
|
if [[ "$git_keyboard_shortcuts_enabled" = "true" ]]; then
|
||||||
case "$TERM" in
|
case "$-" in
|
||||||
xterm*|rxvt*)
|
*i*)
|
||||||
# Uses emacs style keybindings, so vi mode is not supported for now
|
# Uses emacs style keybindings, so vi mode is not supported for now
|
||||||
if ! [[ $shell == "bash" ]] || ! set -o | grep -q '^vi .*on$'; then
|
if ! [[ $shell == "bash" ]] || ! set -o | grep -q '^vi .*on$'; then
|
||||||
_bind "$git_commit_all_keys" "\" git_commit_all\n\""
|
_bind "$git_commit_all_keys" "\" git_commit_all\n\""
|
||||||
|
|||||||
Reference in New Issue
Block a user