Skip to content

Commit 19ae1b5

Browse files
committed
delete: fix when running from the command palette
It didn't do anything because paths is empty (it's None since not run from the side bar. Use `self.paths` instead)
1 parent cee37ad commit 19ae1b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commands/delete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run(self, paths=None, *args, **kwargs):
4949
[confirm_title, confirm_subtitle],
5050
[cancel_title, cancel_subtitle],
5151
]
52-
for path in paths:
52+
for path in self.paths:
5353
paths_to_display.append([os.path.basename(path), path])
5454

5555
self.window.show_quick_panel(

0 commit comments

Comments
 (0)