Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: single cmd editor

NTFSvolume2fb8e9a0d617
diff --git a/cyberdrop_dl/utils/text_editor.py b/cyberdrop_dl/utils/text_editor.py
index 23bb825ba..d9d08d24d 100644
--- a/cyberdrop_dl/utils/text_editor.py
+++ b/cyberdrop_dl/utils/text_editor.py
@@ -9,10 +9,9 @@ import sys
from typing import TYPE_CHECKING, final
if TYPE_CHECKING:
- from collections.abc import Sequence
from pathlib import Path
-type CMD = Sequence[str]
+type CMD = list[str] | tuple[str, ...]
# Ordered by preference
_UNIX_TEXT_EDITORS: tuple[CMD, ...] = (
@@ -52,7 +51,7 @@ def editor_cmd() -> CMD | None:
def _editor_cmd() -> CMD | None:
if editor := os.environ.get("EDITOR"):
if cmd := shutil.which(editor):
- return cmd
+ return (cmd,)
import shlex