Re: [dev] [st] Blank lines not preserved

From: Alexander S. <alex0player_AT_gmail.com>
Date: Mon, 26 May 2014 09:16:44 +0400

2014-05-21 22:40 GMT+04:00 Eric Pruitt <eric.pruitt_AT_gmail.com>:
> When copying text from st, all intermittent blank lines get removed. For
> example, if I run "printf 'XXX\n\n\nXXX\n'" then copy and paste the
> printed text, I get:
>
> XXX
> XXX
>
> Instead the expected:
>
> XXX
>
>
> XXX


This is most assuredly a bug. It was a past behaviour, then it got
fixed in http://git.suckless.org/st/commit/st.c?id=e5ff746430725b05e223c454febbde949df2fde2
but somehow creeped back in.
The bug was reintroduced in
http://git.suckless.org/st/commit/st.c?id=eeae9b0ceef9e2fec4cb4f1132748c302e5ac702
, which fixed a core crash on OpenBSD.
The correct behaviour would, of course, be to assume that a
non-existent character doesn't have wrap, as opposed to does.

-- 
Best regards,
Alexaner Sedov.
Received on Mon May 26 2014 - 07:16:44 CEST

This archive was generated by hypermail 2.3.0 : Mon May 26 2014 - 07:24:07 CEST