fixed bug when moving to parent when y position of old directory equals bottom

This commit is contained in:
Nathan Sketch 2021-04-17 10:23:17 -04:00
parent 8920178753
commit 01ae386143
1 changed files with 1 additions and 1 deletions

2
shfm
View File

@ -121,7 +121,7 @@ hist_search() {
for file do
case ${PWD%%/}/$file in
"$old_pwd") y=$j y2=$((j > bottom ? mid : j)) cur=$file
"$old_pwd") y=$j y2=$((j >= bottom ? mid : j)) cur=$file
esac
j=$((j + 1))