Skip to content

Commit 488b4df

Browse files
author
Bruno Sutic
committed
Refactor minimum pane width for the sidebar
1 parent 915e119 commit 488b4df

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

scripts/toggle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ current_pane_is_sidebar() {
157157
}
158158

159159
current_pane_too_narrow() {
160-
[ $PANE_WIDTH -lt 81 ]
160+
[ $PANE_WIDTH -lt $MINIMUM_WIDTH_FOR_SIDEBAR ]
161161
}
162162

163163
execute_command_from_main_pane() {

scripts/variables.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
VAR_KEY_PREFIX="@sidebar-key"
22
REGISTERED_PANE_PREFIX="@-sidebar-registered-pane"
33
REGISTERED_SIDEBAR_PREFIX="@-sidebar-is-sidebar"
4+
MINIMUM_WIDTH_FOR_SIDEBAR="71"
45

56
TREE_KEY="Tab"
67
TREE_OPTION="@sidebar-tree"

0 commit comments

Comments
 (0)