diff --git a/shfm b/shfm index 9c3c6bc..785f10e 100755 --- a/shfm +++ b/shfm @@ -63,9 +63,7 @@ list_print() { 1) hist_search "$@" esac - case $((y - bottom)) in - [0-9]*) shift "$((y - bottom))" - esac + shift "$((y - bottom > 0 ? y - bottom : 0))" for file do file_escape "$file"