From 12c0232522677f3fa0aca369b8feb3a6c5fb7825 Mon Sep 17 00:00:00 2001 Message-Id: <12c0232522677f3fa0aca369b8feb3a6c5fb7825.1714870814.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 29 Nov 2017 14:42:41 +0000 Subject: [PATCH] bin/un-backslashify-selection: Fix for newer `pterm'. Organization: Straylight/Edgeware From: Mark Wooding It seems that `pterm' is trying to be more intelligent about newline handling. The result is that when you select a number of lines in an Emacs ERC buffer, sometimes the final `\' of a line isn't actually followed by a newline. Tweak the seddery to cope with this. In particular, zap spaces following a `\' along with the `\' itself. --- bin/un-backslashify-selection | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/un-backslashify-selection b/bin/un-backslashify-selection index 1b14d43..ad4e1fa 100755 --- a/bin/un-backslashify-selection +++ b/bin/un-backslashify-selection @@ -1,7 +1,7 @@ #! /bin/sh xsel -o | sed ' - s:\\::g + s:\\ *::g H $ !d -- [mdw]