using pager link

This commit is contained in:
overflowerror 2017-01-24 15:31:37 +01:00
parent eb9d7ed737
commit 3b2b66e5f7

View file

@ -153,7 +153,8 @@ if test "$mode" = "read"; then
fl=$(echo "$content" | grep -n "$SEPERATOR" | sed $fl'q;d' | cut -f1 -d:)
echo "$content" | less +$fl
# TODO maybe the following line just works with less
echo "$content" | pager +$fl
exit $EXIT_SUCCESS
fi
@ -161,7 +162,7 @@ if test "$mode" = "read"; then
if test "$pager" = 0; then
echo "$content"
else
echo "$content" | less
echo "$content" | pager
fi
exit $EXIT_SUCCESS
fi