Skip to content

Commit c1736d8

Browse files
committed
Update inside_string _after_ reprinting the line.
This will fix issue bpython#19.
1 parent 576dbbe commit c1736d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpython/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,13 +1472,13 @@ def lf(self):
14721472
for _ in range(self.cpos):
14731473
self.mvc(-1)
14741474

1475-
self.inside_string = next_token_inside_string(self.s,
1476-
self.inside_string)
1477-
14781475
# Reprint the line (as there was maybe a highlighted paren in it)
14791476
self.print_line(self.s, newline=True)
14801477
self.echo("\n")
14811478

1479+
self.inside_string = next_token_inside_string(self.s,
1480+
self.inside_string)
1481+
14821482
def addstr(self, s):
14831483
"""Add a string to the current input line and figure out
14841484
where it should go, depending on the cursor position."""

0 commit comments

Comments
 (0)