Skip to content

Commit 838b7fa

Browse files
author
Bruno Sutic
committed
Sidebar is half pane when size is undefined
1 parent 4cd1d43 commit 838b7fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/toggle.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ desired_sidebar_size() {
117117
# use stored sidebar width for the directory
118118
echo "$(width_from_sidebar_file "$PANE_CURRENT_PATH")"
119119
elif size_defined && [ $SIZE -lt $half_pane ]; then
120-
echo $SIZE
120+
echo "$SIZE"
121+
else
122+
echo "$half_pane"
121123
fi
122124
}
123125

0 commit comments

Comments
 (0)