Skip to content

Commit 8fdb3ee

Browse files
committed
remove plus one
1 parent b38b9fc commit 8fdb3ee

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/textual/app.py

-1
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,6 @@ def copy_to_clipboard(self, text: str) -> None:
15311531
self._clipboard = text
15321532
if self._driver is None:
15331533
return
1534-
15351534
import base64
15361535

15371536
base64_text = base64.b64encode(text.encode("utf-8")).decode("utf-8")

src/textual/content.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def get_span(y: int) -> tuple[int, int] | None:
256256
start, end = span
257257
if end == -1:
258258
end = len(line.plain)
259-
line = line.stylize(selection_style, start, end + 1)
259+
line = line.stylize(selection_style, start, end)
260260

261261
content_line = FormattedLine(
262262
line.expand_tabs(tab_size), width, y=y, align=align

0 commit comments

Comments
 (0)