Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: shlex cmd

NTFSvolume6d31665402e9
diff --git a/cyberdrop_dl/utils/text_editor.py b/cyberdrop_dl/utils/text_editor.py
index dabd2dfab..23bb825ba 100644
--- a/cyberdrop_dl/utils/text_editor.py
+++ b/cyberdrop_dl/utils/text_editor.py
@@ -57,7 +57,7 @@ def _editor_cmd() -> CMD | None:
import shlex
cmd, *args = shlex.split(editor)
- if cmd and (bin_path := shutil.which(cmd[0])):
+ if cmd and (bin_path := shutil.which(cmd)):
return bin_path, *args
msg = f"Editor '{editor}' from env var $EDITOR is not available. Ignoring"