Skip to content

Commit

Permalink
remove plus one
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Jan 4, 2025
1 parent b38b9fc commit 8fdb3ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,6 @@ def copy_to_clipboard(self, text: str) -> None:
self._clipboard = text
if self._driver is None:
return

import base64

base64_text = base64.b64encode(text.encode("utf-8")).decode("utf-8")
Expand Down
2 changes: 1 addition & 1 deletion src/textual/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def get_span(y: int) -> tuple[int, int] | None:
start, end = span
if end == -1:
end = len(line.plain)
line = line.stylize(selection_style, start, end + 1)
line = line.stylize(selection_style, start, end)

content_line = FormattedLine(
line.expand_tabs(tab_size), width, y=y, align=align
Expand Down

0 comments on commit 8fdb3ee

Please sign in to comment.