From: Mark Wooding Date: Wed, 29 Nov 2017 14:42:41 +0000 (+0000) Subject: bin/un-backslashify-selection: Fix for newer `pterm'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/12c0232522677f3fa0aca369b8feb3a6c5fb7825?ds=inline bin/un-backslashify-selection: Fix for newer `pterm'. 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. --- 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