Skip to content

Commit 80eb2d4

Browse files
committed
Tweak Python terminal shell integration for lsp completion
1 parent c246e0e commit 80eb2d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_files/pythonrc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ def __str__(self):
5353
result = ""
5454
# For non-windows allow recent_command history.
5555
if sys.platform != "win32":
56-
result = "{command_line}{command_finished}{prompt_started}{prompt}{command_start}{command_executed}".format(
56+
result = "{command_executed}{command_line}{command_finished}{prompt_started}{prompt}{command_start}".format(
57+
command_executed="\x1b]633;C\x07",
5758
command_line="\x1b]633;E;" + str(get_last_command()) + "\x07",
5859
command_finished="\x1b]633;D;" + str(exit_code) + "\x07",
5960
prompt_started="\x1b]633;A\x07",
6061
prompt=original_ps1,
6162
command_start="\x1b]633;B\x07",
62-
command_executed="\x1b]633;C\x07",
6363
)
6464
else:
6565
result = "{command_finished}{prompt_started}{prompt}{command_start}{command_executed}".format(

0 commit comments

Comments
 (0)