This commit is contained in:
Dylan Araps 2020-08-03 20:30:50 +03:00
parent c9e05439c9
commit 33410e043e
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 7 additions and 13 deletions

20
shfm
View File

@ -91,21 +91,15 @@ main() {
;;
j?|B2) # ARROW DOWN
case $y in
"$line_max")
y=$line_max
;;
[ "$y" -ge "$line_max" ] || {
y=$((y + 1))
*)
y=$((y + 1))
print_line "$((y - 1))" "$@"
printf '\n'
print_line "$y" "$@"
print_line "$((y - 1))" "$@"
printf '\n'
print_line "$y" "$@"
status_line
;;
esac
status_line "$line_max"
}
;;
l?|C2) # ARROW RIGHT