Re: [dev] [st] [PATCH] Fix extra bracketed paste markers when pasting >8kb

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Fri, 25 Sep 2015 20:16:54 +0200

Greetings.

On Fri, 25 Sep 2015 20:16:54 +0200 dequis <dx_AT_dxzone.com.ar> wrote:
> Before this patch, when pasting over BUFSIZE (8192 bytes here), st would
> do the following:
>
> \e[200~...8192 bytes...\e[201~\e[200~...remaining bytes...\e[201~
>
> With this patch, the start marker is only sent when the offset is 0 (at
> the beginning of selnotify) and the end marker is only sent when the
> remaining bytes to read are 0 (at the end).
>
> For short pastes, both conditions are true in the same iteration.
>
> For long pastes, it removes the extra markers in the middle, keeping the
> intended wrapping:

Thanks for sending in the patch. It has been applied to mainline.

Sincerely,

Christoph Lohmann
Received on Fri Sep 25 2015 - 20:16:54 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 25 2015 - 20:24:09 CEST