Skip to content

Commit 0d096dc

Browse files
committed
FIX: fixed saving command history to a path containing spaces (closes #244)
1 parent 10362f8 commit 0d096dc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/changes/version_0_34.rst.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ Fixes
7474

7575
* when save command history fails, do not do so silently. Closes :editor_issue:`225`.
7676

77+
* fixed saving command history to a path containing spaces. Closes :editor_issue:`244`.
78+
7779
* fixed compare() background color being red for two equal integer arrays instead of white
7880
(closes :editor_issue:`246`).

larray_editor/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def complete_slice(s):
952952

953953
with io.StringIO() as tmp_out:
954954
with redirect_stdout(tmp_out):
955-
self.kernel.shell.run_line_magic('save', f'{overwrite} {filepath} {lines}')
955+
self.kernel.shell.run_line_magic('save', f'{overwrite} "{filepath}" {lines}')
956956
stdout = tmp_out.getvalue()
957957
if 'commands were written to file' not in stdout:
958958
raise Exception(stdout)

0 commit comments

Comments
 (0)