From a4a8fd8e2fd078fec5d0dbb70ec7253530ece040 Mon Sep 17 00:00:00 2001 From: micha Date: Thu, 3 Nov 2022 14:15:47 +0100 Subject: [PATCH] Do not erase final newline of clipboard. --- xclipfrom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xclipfrom b/xclipfrom index a32ebb0..cfbe220 100755 --- a/xclipfrom +++ b/xclipfrom @@ -14,7 +14,7 @@ proc handleSelection {offset maxChars} { # Grab the current clipboard contents from the *other* display. # I would rather do this without fork/execing a subprocess, but I # couldn't find a way to make tcl/tk talk to two X11 servers at once. - catch {exec xclip -display $otherDisplay -selection CLIPBOARD -o} result + catch {exec -keepnewline xclip -display $otherDisplay -selection CLIPBOARD -o} result return $result }