Skip to content

Commit

Permalink
Fix line-truncation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Jul 17, 2023
1 parent f2a8a71 commit 90c3e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdbp.py
Expand Up @@ -710,7 +710,7 @@ def _print_lines_pdbp(
maxlength = max(width - 9, 16)
lines = [set_line_width(line, maxlength) for line in lines]
else:
maxlength = max(map(len, lines))
maxlength = max(map(get_width, lines))
if self.config.highlight:
# Fill line with spaces. This is important when a bg color is
# is used for highlighting the current line (via setbgcolor).
Expand Down

0 comments on commit 90c3e8e

Please sign in to comment.