mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Preserve Windows paths in editor command parsing
This commit is contained in:
parent
85189c0bde
commit
c8745afb37
1 changed files with 4 additions and 1 deletions
|
@ -109,7 +109,10 @@ def discover_editor(editor_override=None):
|
|||
else:
|
||||
editor = get_environment_editor(default_editor)
|
||||
try:
|
||||
return shlex.split(editor)
|
||||
if system == "Windows":
|
||||
return shlex.split(editor, posix=False)
|
||||
else:
|
||||
return shlex.split(editor)
|
||||
except ValueError as e:
|
||||
raise RuntimeError(f"Invalid editor command format '{editor}': {e}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue