From de70a91751377af333cb70dad11603777e2a1901 Mon Sep 17 00:00:00 2001 From: Yehonatan Rosenblatt Date: Sun, 9 Feb 2025 23:06:05 +0200 Subject: [PATCH] copytk.py: Remove printables check Because printables were not being, well, printed, it caused a bug where attempted copies of lines with unprintable characters could not be done. Because the plugin works with screen offsets, the offsets would always be wrong, therefore the copy not working properly --- copytk.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/copytk.py b/copytk.py index 67f6ab6..a3e561a 100644 --- a/copytk.py +++ b/copytk.py @@ -395,9 +395,7 @@ def process_pane_capture_lines(data, nlines=None): # also handles nonprintables lines = [ ''.join([ - ' ' if c == '\t' else ( - c if c.isprintable() else '' - ) + ' ' if c == '\t' else c for c in line ]) for line in data.split('\n')