Skip to content

Commit 065b880

Browse files
committed
browser: select first entry if no files/folder
fix #56
1 parent 786711b commit 065b880

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

input_for_path.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,11 @@ def browsing_on_done(self, index=None):
375375
if self.browser_index is not None:
376376
index = self.browser_index
377377
elif self.no_browser_action:
378-
index = 1
378+
index = 0
379+
elif len(folders) + len(files) == 0:
380+
# browser actions are enabled, but there just aren't any folder or
381+
# files
382+
index = 0
379383
else:
380384
index = 2
381385

0 commit comments

Comments
 (0)