Revert "Use ^M instead of" - Stick with "\n" for now so that Ctrl + x + space works on bash

This reverts commit 1f3b8a6b11.
This commit is contained in:
Nathan Broadbent
2018-08-31 23:53:42 +07:00
parent 7fcd70adc2
commit e6b1785910

View File

@@ -27,13 +27,13 @@ if [[ "$git_keyboard_shortcuts_enabled" = "true" ]]; then
# 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 ! set -o | grep -q '^vi .*on$'; then if ! set -o | grep -q '^vi .*on$'; then
if [[ $shell == "zsh" ]]; then if [[ $shell == "zsh" ]]; then
_bind "$git_commit_all_keys" " git_commit_all""^M" _bind "$git_commit_all_keys" " git_commit_all""\n"
_bind "$git_add_and_commit_keys" " \033[1~ git_add_and_commit ""^M" _bind "$git_add_and_commit_keys" " \033[1~ git_add_and_commit ""\n"
_bind "$git_commit_all_with_ci_skip_keys" " \033[1~ APPEND='[ci skip]' git_commit_all ""^M" _bind "$git_commit_all_with_ci_skip_keys" " \033[1~ APPEND='[ci skip]' git_commit_all ""\n"
else else
_bind "$git_commit_all_keys" "\" git_commit_all^M\"" _bind "$git_commit_all_keys" "\" git_commit_all\n\""
_bind "$git_add_and_commit_keys" "\"\C-A git_add_and_commit ^M\"" _bind "$git_add_and_commit_keys" "\"\C-A git_add_and_commit \n\""
_bind "$git_commit_all_with_ci_skip_keys" "\"\C-A APPEND='[ci skip]' git_commit_all ^M\"" _bind "$git_commit_all_with_ci_skip_keys" "\"\C-A APPEND='[ci skip]' git_commit_all \n\""
fi fi
fi fi