Skip to content

Commit 71cd3e7

Browse files
committed
Reset osc order
1 parent 63df553 commit 71cd3e7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎python_files/pythonrc.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ def __str__(self):
9494
# For non-windows allow recent_command history.
9595
# fmt: off
9696
if sys.platform != "win32":
97-
result = "{soh}{command_line}{pre_execution}{execution_finished}{prompt_start}{stx}{prompt}{soh}{prompt_end}{stx}".format( # noqa: UP032
97+
result = "{soh}{pre_execution}{command_line}{execution_finished}{prompt_start}{stx}{prompt}{soh}{prompt_end}{stx}".format( # noqa: UP032
9898
soh=ShellIntegrationSequence.soh,
99-
command_line=ShellIntegrationSequence.command_line(get_last_command()),
10099
pre_execution=ShellIntegrationSequence.pre_execution(),
100+
command_line=ShellIntegrationSequence.command_line(get_last_command()),
101101
execution_finished=ShellIntegrationSequence.execution_finished(last_exit_code),
102102
prompt_start=ShellIntegrationSequence.prompt_start(),
103103
stx=ShellIntegrationSequence.stx,

‎python_files/tests/test_shell_integration.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_decoration_success():
2828
result = str(ps1)
2929
assert (
3030
result
31-
== "\x01\x1b]633;E;None\x07\x1b]633;C\x07\x1b]633;D;0\x07\x1b]633;A\x07\x02>>> \x01\x1b]633;B\x07\x02"
31+
== "\x01\x1b]633;C\x07\x1b]633;E;None\x07\x1b]633;D;0\x07\x1b]633;A\x07\x02>>> \x01\x1b]633;B\x07\x02"
3232
)
3333

3434

@@ -40,7 +40,7 @@ def test_decoration_failure():
4040
result = str(ps1)
4141
assert (
4242
result
43-
== "\x01\x1b]633;E;None\x07\x1b]633;C\x07\x1b]633;D;1\x07\x1b]633;A\x07\x02>>> \x01\x1b]633;B\x07\x02"
43+
== "\x01\x1b]633;C\x07\x1b]633;E;None\x07\x1b]633;D;1\x07\x1b]633;A\x07\x02>>> \x01\x1b]633;B\x07\x02"
4444
)
4545

4646

@@ -103,7 +103,7 @@ def test_prompt_survives_shadowed_builtins_under_pythonstartup():
103103
result = str(ps1)
104104
assert (
105105
result
106-
== "\x01\x1b]633;E;None\x07\x1b]633;C\x07\x1b]633;D;0\x07\x1b]633;A\x07\x02>>> \x01\x1b]633;B\x07\x02"
106+
== "\x01\x1b]633;C\x07\x1b]633;E;None\x07\x1b]633;D;0\x07\x1b]633;A\x07\x02>>> \x01\x1b]633;B\x07\x02"
107107
)
108108

109109

0 commit comments

Comments
 (0)