mirror of
https://github.com/dylanaraps/shfm.git
synced 2026-10-06 07:33:31 +07:00
better
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user