Merge pull request #59 from jirutka/patch-4

Fix indentation in autosuggest-backward-delete-char()
This commit is contained in:
Michael Robinson 2015-05-21 11:11:53 +12:00
commit 8d29045ffb

View file

@ -163,6 +163,7 @@ autosuggest-insert-or-space() {
autosuggest-backward-delete-char() { autosuggest-backward-delete-char() {
if (( $#LBUFFER > 1 )); then if (( $#LBUFFER > 1 )); then
setopt localoptions noshwordsplit noksharrays setopt localoptions noshwordsplit noksharrays
if [[ $LBUFFER = *$'\012'* || $LASTWIDGET != (self-insert|magic-space|backward-delete-char) ]]; then if [[ $LBUFFER = *$'\012'* || $LASTWIDGET != (self-insert|magic-space|backward-delete-char) ]]; then
LBUFFER="$LBUFFER[1,-2]" LBUFFER="$LBUFFER[1,-2]"
else else