aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2023-03-15 00:23:09 +1300
committerTom Ryder <tom@sanctum.geek.nz>2023-03-15 00:23:09 +1300
commit22a6e2e83039bd29b7860b0adf641a91adb86f0c (patch)
tree9b4b319a4a6a4f94bf3ed3b72dad7a98ce2ad8b4
parentMerge branch 'release/v12.32.0' into develop (diff)
downloaddotfiles-22a6e2e83039bd29b7860b0adf641a91adb86f0c.tar.gz
dotfiles-22a6e2e83039bd29b7860b0adf641a91adb86f0c.zip
Strip trailing spaces in xterm selections
-rw-r--r--x/Xresources7
1 files changed, 7 insertions, 0 deletions
diff --git a/x/Xresources b/x/Xresources
index 798cc9d2..1c6ab1aa 100644
--- a/x/Xresources
+++ b/x/Xresources
@@ -57,3 +57,10 @@ XTerm.vt100.color15: rgb:ee/ee/ec
XTerm.vt100.translations: #override \n\
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD)
+
+/**
+ * Trim trailing spaces from selections; if I'm copying text from a terminal
+ * emulator window, I probably don't want it byte-perfect for hashing purposes
+ * or anything like that.
+ */
+XTerm.vt100.trimSelection: true