We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49255d6 commit 2776156Copy full SHA for 2776156
bpython/curtsiesfrontend/repl.py
@@ -1536,15 +1536,15 @@ def number_of_padding_chars_on_current_cursor_line(self):
1536
1537
Should return zero unless there are fullwidth characters."""
1538
full_line = self.current_cursor_line_without_suggestion
1539
- line_with_padding = "".join(
1540
- line.s
+ line_with_padding_len = sum(
+ len(line.s)
1541
for line in paint.display_linize(
1542
self.current_cursor_line_without_suggestion.s, self.width
1543
)
1544
1545
1546
# the difference in length here is how much padding there is
1547
- return len(line_with_padding) - len(full_line)
+ return line_with_padding_len - len(full_line)
1548
1549
def paint(
1550
self,
0 commit comments