Skip to content

Commit c1e818e

Browse files
committed
Fix less again
1 parent 8fcf07f commit c1e818e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# tldr-bash-client
22

3-
* version 0.47
3+
* version 0.48
44

55
### Bash client for tldr: community driven man-by-example
66
**A fully-functional [bash](https://tiswww.case.edu/php/chet/bash/bashtop.html)

tldr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22
set +vx -o pipefail
33
[[ $- = *i* ]] && echo "Don't source this script!" && return 1
4-
version='0.47'
5-
# tldr-bash-client version 0.44
4+
version='0.48'
5+
# tldr-bash-client version 0.48
66
# Bash client for tldr: community driven man-by-example
77
# - forked from Ray Lee, https://github.com/raylee/tldr
88
# - modified and expanded by pepa65: https://gitlab.com/pepa65/tldr-bash-client
@@ -205,7 +205,7 @@ Config(){
205205
Init_term
206206
[[ $TLDR_LESS = 0 ]] &&
207207
trap 'cat <<<"$stdout"' EXIT ||
208-
trap 'less -~RXQFP"Browse up/down, press Q to exit " <<<"$stdout"' EXIT
208+
trap 'less -Gg -~RXQFP"Browse up/down, press Q to exit " <<<"$stdout"' EXIT
209209

210210
ver="tldr-bash-client version $version$XB ${URL}https://gitlab.com/pepa65/tldr-bash-client$XURL"
211211

@@ -357,7 +357,7 @@ Display_tldr(){
357357
done <"$1"
358358
[[ $TLDR_LESS = 0 ]] &&
359359
trap 'cat <<<"$stdout"' EXIT ||
360-
trap 'less +Gg -~RXQFP"%pB\% tldr $I$page$XI - browse up/down, press Q to exit" <<<"$stdout"' EXIT
360+
trap 'less -Gg -~RXQFP"%pB\% tldr $I$page$XI - browse up/down, press Q to exit" <<<"$stdout"' EXIT
361361
}
362362

363363
# $1: exit code; Uses: platform index

0 commit comments

Comments
 (0)