From bbd5300d605ea60fccb35c98315d936faa2fc319 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 21 May 2015 01:08:17 +0200 Subject: [PATCH] Fix indentation in autosuggest-backward-delete-char() --- autosuggestions.zsh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/autosuggestions.zsh b/autosuggestions.zsh index e8a3382..545a93a 100644 --- a/autosuggestions.zsh +++ b/autosuggestions.zsh @@ -163,13 +163,14 @@ autosuggest-insert-or-space() { autosuggest-backward-delete-char() { if (( $#LBUFFER > 1 )); then setopt localoptions noshwordsplit noksharrays - if [[ $LBUFFER = *$'\012'* || $LASTWIDGET != (self-insert|magic-space|backward-delete-char) ]]; then - LBUFFER="$LBUFFER[1,-2]" - else - ((--CURSOR)) - autosuggest-invalidate-highlight-cache - zle .history-beginning-search-forward || RBUFFER='' - fi + + if [[ $LBUFFER = *$'\012'* || $LASTWIDGET != (self-insert|magic-space|backward-delete-char) ]]; then + LBUFFER="$LBUFFER[1,-2]" + else + ((--CURSOR)) + autosuggest-invalidate-highlight-cache + zle .history-beginning-search-forward || RBUFFER='' + fi autosuggest-highlight-suggested-text else zle .kill-whole-line