From 0dfc3ec09e55eb925d0534935be9348447e3a70b Mon Sep 17 00:00:00 2001 From: Fakerr Date: Sat, 11 Mar 2017 13:26:17 +0100 Subject: [PATCH] fix small bug --- git-recall | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git-recall b/git-recall index c882e19..5e8c119 100644 --- a/git-recall +++ b/git-recall @@ -26,7 +26,7 @@ COMMITS="" COMMITS_UNCOL=() # commits without colors LESSKEY=false SED_BIN="" # Sed option to use according OS. -VERSION="1.1.9" +VERSION="1.2.0" # Are we in a git repo? if [[ ! -d ".git" ]] && ! git rev-parse --git-dir &>/dev/null; then @@ -292,8 +292,8 @@ do "$au" | "$au_1") CP=$(( CP - 1 )) - [[ $CP == 0 ]] && [[ $SI=1 ]] && [[ $TN == $(( SN - 1 )) ]] && CP=$NI && SI=$(( NI - SN + 2 + OFFSET_2 )) - [[ $CP == 0 ]] && [[ $SI=1 ]] && [[ $TN == $NI ]] && CP=$TN + [[ $CP == 0 ]] && [[ $SI == 1 ]] && [[ $TN == $(( SN - 1 )) ]] && CP=$NI && SI=$(( NI - SN + 2 + OFFSET_2 )) + [[ $CP == 0 ]] && [[ $SI == 1 ]] && [[ $TN == $NI ]] && CP=$TN [[ $CP == $(( SI - 1 )) ]] && [[ $SI != 1 ]] && SI=$(( SI - 1 )) [[ $TN != $(( SN - 1 )) ]] && tput cuu $(( TN + OFFSET_2 ))