fixed bug that doubled others every directory change causing slow down.

cause was not properly clearing variables.
This commit is contained in:
Nathan Sketch 2021-04-21 06:54:10 -04:00
parent 403a1dda0e
commit cb44b458ed
1 changed files with 3 additions and 1 deletions

4
shfm
View File

@ -191,7 +191,7 @@ status_line() {
esc CUP "$((LINES - 1))"
# esc SGR 32
# printf %s "$y $y2 $bottom ${selected:-empty}"
# printf %s "$y $y2 $bottom ${#others} ${selected:-empty}"
# esc EL0
# esc CUD
# esc SGR 33
@ -507,6 +507,8 @@ filter_inpwd() {
IFS='/'
cwd=
fn=
inpwd=
notinpwd=
set -- "$1//"
for piece in $1; do
if [ -z "$piece" ]; then