reduce indent level

This commit is contained in:
Dylan Araps 2020-08-06 11:13:28 +03:00
parent c285271d05
commit 86389b3dbf
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 22 additions and 24 deletions

12
shfm
View File

@ -51,7 +51,9 @@ term_resize() {
term_scroll_down() {
case $((y - $#)) in
-*)
[0-9]*) return
esac
y=$((y + 1))
y2=$((y2 + 1 < bottom ? y2 + 1 : bottom))
@ -59,15 +61,13 @@ term_scroll_down() {
printf '\n'
line_print "$y" "$@"
status_line "$#"
;;
esac
}
term_scroll_up() {
case $y in
-*|0|1) ;;
-*|0|1) return
esac
*)
y=$((y - 1))
line_print "$((y + 1))" "$@"
@ -79,8 +79,6 @@ term_scroll_up() {
line_print "$y" "$@"
status_line "$#"
;;
esac
}
cmd_run() {