Skip to content

Commit

Permalink
Remove some debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Jan 10, 2024
1 parent e000298 commit 6f41dc2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/textual/widgets/_text_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,12 @@ def render_line(self, widget_y: int) -> Strip:
line = sections[section_offset]
line.end = ""

target_width = self.size.width - self.gutter_width
# Set the width of this section to the target width.
base_width = (
self.scrollable_content_region.size.width
if self.wrap
else max(virtual_width, self.region.size.width)
)
target_width = base_width - self.gutter_width
console = self.app.console
gutter_segments = console.render(gutter)
text_segments = console.render(line, console.options.update_width(target_width))
Expand Down

0 comments on commit 6f41dc2

Please sign in to comment.