X Tutup
Skip to content

Commit 82d9b50

Browse files
committed
Fix a bug where highlighted parens remain highlighted.
This was introduced with the new under-cursor calculation.
1 parent 9cdf92d commit 82d9b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ def reprint_line(lineno, s, to_replace=[]):
17051705
# Marker found
17061706
tokens[i] = (Parenthesis, value)
17071707
break
1708-
elif opening and under_cursor:
1708+
elif opening and under_cursor and not newline:
17091709
if self.cpos:
17101710
tokens[i] = (Parenthesis.UnderCursor, value)
17111711
else:

0 commit comments

Comments
 (0)
X Tutup