File tree 2 files changed +4
-4
lines changed
extensions/positron-python/python_files
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ def __str__(self):
54
54
result = ""
55
55
# For non-windows allow recent_command history.
56
56
if sys .platform != "win32" :
57
- result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}{command_line}" .format (
57
+ result = "{command_line}{command_finished}{prompt_started}{prompt}{command_start}{command_executed}" .format (
58
+ command_line = "\x1b ]633;E;" + str (get_last_command ()) + "\x07 " ,
58
59
command_finished = "\x1b ]633;D;" + str (exit_code ) + "\x07 " ,
59
60
prompt_started = "\x1b ]633;A\x07 " ,
60
61
prompt = original_ps1 ,
61
62
command_start = "\x1b ]633;B\x07 " ,
62
63
command_executed = "\x1b ]633;C\x07 " ,
63
- command_line = "\x1b ]633;E;" + str (get_last_command ()) + "\x07 " ,
64
64
)
65
65
else :
66
66
result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}" .format (
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def test_decoration_success():
13
13
if sys .platform != "win32" :
14
14
assert (
15
15
result
16
- == "\x1b ]633;D;0\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 \x1b ]633;C\x07 \x1b ]633;E;None \x07 "
16
+ == "\x1b ]633;E;None \x07 \x1b ]633; D;0\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 \x1b ]633;C\x07 "
17
17
)
18
18
else :
19
19
pass
@@ -28,7 +28,7 @@ def test_decoration_failure():
28
28
if sys .platform != "win32" :
29
29
assert (
30
30
result
31
- == "\x1b ]633;D;1\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 \x1b ]633;C\x07 \x1b ]633;E;None \x07 "
31
+ == "\x1b ]633;E;None \x07 \x1b ]633; D;1\x07 \x1b ]633;A\x07 >>> \x1b ]633;B\x07 \x1b ]633;C\x07 "
32
32
)
33
33
else :
34
34
pass
You can’t perform that action at this time.
0 commit comments