Re: [dev] [PATCH] Removing wrapping newlines from selection

2014-08-24 Thread Eric Pruitt
On Sun, Aug 24, 2014 at 07:37:14PM -0400, Nick wrote: > I don't have time to test it yet. Will it also work for text within > programs like dvtm / screen, or is that too much to ask as they > don't expose the necessary line wrapping information to st? It works fine with tmux and screen. Eric

Re: [dev] [PATCH] Removing wrapping newlines from selection

2014-08-24 Thread Nick
Quoth Ben Hendrickson: > When getting selected text, lines that were wrapped because of length > ought not include the wrapping newline in the selection. Cool, this is a very useful fix, thanks. I don't have time to test it yet. Will it also work for text within programs like dvtm / screen, or i

Re: [dev] [ubase] [PATCH] Remove unnecessary newline output from su

2014-08-24 Thread Dimitris Papastamos
On Sun, Aug 24, 2014 at 06:25:13PM -0400, Wolfgang Corcoran-Mathe wrote: > I don't see a reason for this extra newline, but apologies in advance > if I'm just being thick. Thanks, will apply this tomorrow.

[dev] [ubase] [PATCH] Remove unnecessary newline output from su

2014-08-24 Thread Wolfgang Corcoran-Mathe
I don't see a reason for this extra newline, but apologies in advance if I'm just being thick. -- Wolfgang Corcoran-Mathe diff --git a/su.c b/su.c index fe7e139..71268c1 100644 --- a/su.c +++ b/su.c @@ -64,7 +64,7 @@ main(int argc, char *argv[]) uid = getuid(); if (uid) { -

Re: [dev] [st] Proposal of changing internal representation

2014-08-24 Thread Roberto E. Vargas Caballero
> > - decode > > - encode > > - decode > > These steps aren't as slow as you might think. I already have said in another mail that they are not a bottleneck, and we are not going to increment the performance of st. It's only about make the code better. > Look at how ??decoding?? is

Re: [dev] [st] Proposal of changing internal representation

2014-08-24 Thread Christoph Lohmann
Greetings. On Sun, 24 Aug 2014 16:56:33 +0200 "Roberto E. Vargas Caballero" wrote: > If the character is a multibyte, we decode it again. So for > multibyte characters we: > > - decode > - encode > - decode These steps aren't as slow as you might think. > It is slow and

Re: [dev] [st] Proposal of changing internal representation

2014-08-24 Thread Martti Kühne
Work on this is definitely appreciated. Whenever I come about to pull newest versions of the suckless projects I use. I'm a rather lazy compiler when it comes to these, tho... :D

Re: [dev] [st] Proposal of changing internal representation

2014-08-24 Thread Roberto E. Vargas Caballero
> > > > ptr = buf; > > while((charsize = utf8decode(ptr, &unicodep, buflen))) { > > utf8encode(unicodep, s, UTF_SIZ); > > tputc(s, charsize); > > ptr += charsize; > > buflen -= charsize; > > } > > Why not usin