Fix less taking the whole terminal screen

This commit is contained in:
pepa65 2017-05-30 22:49:31 +07:00
parent 24c18b0fa3
commit 24b742a8d3
1 changed files with 1 additions and 1 deletions

2
tldr
View File

@ -324,7 +324,7 @@ Display_tldr(){
Out "$ENL$EPS$E$line$XE" ;;
esac
done <"$1"
trap 'less +Gg -~RXQFP"%pB\% tldr $I$page$XI - browse up/down, press Q to exit" <<<"$stdout"' EXIT
trap 'less -Gg -~RXQFP"%pB\% tldr $I$page$XI - browse up/down, press Q to exit" <<<"$stdout"' EXIT
}
# $1: exit code; Uses: platform index