mless: list same number of mails whether we're at the beginning or end

pull/211/head
Dominik Honnef 3 years ago committed by Leah Neukirchen
parent 6684f74f07
commit 6e8e4e01ed

11
mless

@ -22,7 +22,16 @@ if [ "$1" = --filter ]; then
fi
mseq -C "$2"
mscan .-2:.+3 2>/dev/null | colorscan
total=$(mscan -n -- -1)
case $2 in
1) mscan .-0:.+5 ;;
2) mscan .-1:.+4 ;;
$((total - 2))) mscan .-3:.+2 ;;
$((total - 1))) mscan .-4:.+1 ;;
$total) mscan .-5:.+0 ;;
*) mscan .-2:.+3 ;;
esac 2>/dev/null | colorscan
echo
if ! [ -f "$(mseq -r "$2")" ]; then

Loading…
Cancel
Save