Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cdi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ init() {

# echo $mode
case $mode in
'[A') # UP
'[A'|k) # UP

if [ "$current_selection" -eq 0 ]; then
current_selection=$folders_list_size
Expand All @@ -143,7 +143,7 @@ init() {
fi

;;
'[B') # DOWN
'[B'|j) # DOWN

if [ "$current_selection" -eq "$folders_list_size" ]; then
current_selection=0
Expand All @@ -153,13 +153,13 @@ init() {

;;

'[D') # LEFT
'[D'|h) # LEFT
# Removes the last path level
current_dir=${current_dir%/*}
current_selection=0
;;

'[C') # RIGHT
'[C'|l) # RIGHT
get_selected_folder $current_dir $current_selection
current_dir="$current_dir/$selected_folder"
current_selection=0
Expand Down