tiny fixes

This commit is contained in:
q
2016-07-22 09:11:24 +03:00
parent 3df49ff0dd
commit e88a9c3fc8
2 changed files with 4 additions and 4 deletions

View File

@@ -51,11 +51,11 @@ function deletefolders() {
percent=$((200*$i/$folders % 2 + 100*$i/$folders))
printf "\r%02d:%02d:%02d %6d/%d %3d%% %s\033[0K" \
$(($SECONDS/3600)) $(($SECONDS%3600/60)) $(($SECONDS%60)) $i $folders $percent "$line"
rmdir "$line"
rm -rf "$line"
done < <(find "$@" -depth -type d -print0)
printf "\n"
}
echo Listing files...
echo Listing files in "${FOLDERS[@]}" ...
files=0
folders=0
listfiles "${FOLDERS[@]}"

View File

@@ -351,7 +351,7 @@ def page_print(reader,opts,offset):
row_lines=int(float(len(row))/scrsize[1])
else:
row_lines=0
row_lines=0
colored_row=colored[row_i]#=colorify(row,opts)
if offset[1]==r+1+offset[0]:
colored_row=add_highlight(row,opts)
@@ -518,7 +518,7 @@ def add_highlight(s,opts):
cleaned=HL
else:
cleaned=bc.nocolor_string(s)
tagged="${Y}"+cleaned
tagged="${Y}"+cleaned+"${Z}"
return colorify(tagged,opts)
def launch(reader,opts,offset):