mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +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:
|
else:
|
||||||
editor = get_environment_editor(default_editor)
|
editor = get_environment_editor(default_editor)
|
||||||
try:
|
try:
|
||||||
return shlex.split(editor)
|
if system == "Windows":
|
||||||
|
return shlex.split(editor, posix=False)
|
||||||
|
else:
|
||||||
|
return shlex.split(editor)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
raise RuntimeError(f"Invalid editor command format '{editor}': {e}")
|
raise RuntimeError(f"Invalid editor command format '{editor}': {e}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue