hbbs

bbs.hlirc.net
Log | Files | Refs | README | LICENSE

commit d2d09eecf139b25cba546ac16065179f70b31088
parent 6d851bc5a84c5e2941f57349eee8ee865c9f77ea
Author: hhvn <hayden@haydenvh.com>
Date:   Mon,  1 Mar 2021 17:04:08 +0000

bin/interface.sh: move `clear` from menu_read to the 'r' command in menu_list

Diffstat:
Mbin/interface.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/interface.sh b/bin/interface.sh @@ -140,6 +140,7 @@ menu_list(){ grep "^${arg%%.*} ${arg##*.}" < $datadir/boards/$board/list >/dev/null && { id=$arg set_mode "read" + clear break } || error "no such id" ;; @@ -207,7 +208,6 @@ pager2(){ menu_read(){ markread "$board" "$user" "$id" id2=${id##*.} - [ $id2 -eq 0 ] && clear file=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $6 " " $7}' < $datadir/boards/$board/list) from=$(awk -v "id1=${id%%.*}" -v "id2=${id2}" -F" " '$1 == id1 && $2 == id2 {print $4}' < $datadir/boards/$board/list) fromf=$([ "$(userget $from realname)" != "$from" ] && echo "From: $(userget $from realname) <$from>" || echo "From: $from")