From 2aa615ea88bf46d73fb3a0c49cbdba8624bba922 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 4 Aug 2020 13:25:41 +0300 Subject: [PATCH] nice --- shfm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"