Re: Re: [PATCH v2 0/2] Better UTF-8 supports for choose-buffer and list-buffers

2014-04-05 Thread Kosuke ASAMI
sorry... I've only checked sourceforge git repository. 2014-04-05 16:46 GMT+09:00 Nicholas Marriott : > Hi > > I think you misunderstood me. I've already done this in OpenBSD tmux, it'll > be synced to SF git at some point > > > > Original messag

[PATCH v2 2/2] Chop buffers longer than the screen width

2014-04-05 Thread Kosuke Asami
--- format.c | 2 +- paste.c | 11 ++- tmux.h | 7 +++ 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/format.c b/format.c index 05cd4ed..f177d80 100644 --- a/format.c +++ b/format.c @@ -606,7 +606,7 @@ void format_paste_buffer(struct format_tree *ft, struct windo

[PATCH v2 0/2] Better UTF-8 supports for choose-buffer and list-buffers

2014-04-05 Thread Kosuke Asami
The first patch is the same as my last patch. NOTICE: This patches shows UTF-8 characters not only choose-buffer but list-buffers. What should we do is under discussion. Kosuke Asami (2): Better UTF-8 supports for choose-buffer and list-buffers Chop buffers longer than the screen width cmd

[PATCH v2 1/2] Better UTF-8 supports for choose-buffer and list-buffers

2014-04-05 Thread Kosuke Asami
--- cmd-choose-buffer.c | 6 +- cmd-list-buffers.c | 6 +- format.c| 5 +++-- paste.c | 17 ++--- tmux.h | 6 -- utf8.c | 42 ++ 6 files changed, 69 insertions(+), 13 deletions(-)

Re: [PATCH] better UTF-8 support for buffer_sample

2014-04-03 Thread Kosuke ASAMI
the RHS of the > screen in choose mode, which seems nicer anyway. > > > On Mon, Mar 10, 2014 at 12:47:46AM +0900, Kosuke ASAMI wrote: >> The first zero check of 'len' seem to be unnecessary. >> >> I have fixed the decrement number from 'src' when an U

Re: [PATCH] better UTF-8 support for buffer_sample

2014-03-31 Thread Kosuke ASAMI
Is this patch ok? 2014-03-10 4:03 GMT+09:00 Nicholas Marriott : > On Mon, Mar 10, 2014 at 12:47:46AM +0900, Kosuke ASAMI wrote: >> The first zero check of 'len' seem to be unnecessary. >> > > Yes you are right, thanks. Will look at this again and apply it later >

Re: [PATCH] better UTF-8 support for buffer_sample

2014-03-09 Thread Kosuke ASAMI
e UTF-8 character. */ > + src -= (utf8data.have - 1); > + } > + } > + if (src < end - 1) > + dst = vis(dst, src[0], flag, src[1]); > + else if (src < end) > +

Re: [PATCH] better UTF-8 support for buffer_sample

2014-03-08 Thread Kosuke ASAMI
mp;utf8data, *src)) { > + while ((dst - start) + utf8data.have < len) { > + src++; > + > + more = utf8_append(&utf8data, *src); > + if (!more) > +

Re: [PATCH] better UTF-8 support for buffer_sample

2014-03-08 Thread Kosuke ASAMI
something like utf8_strvis. > > Also this looks wrong: > > - format_paste_buffer(ft, pb); > + format_paste_buffer(wp, ft, pb); > > Arguments the wrong way round? > > > On Sat, Mar 08, 2014 at 06:15:25PM +0900, Kosuke ASAMI wrote: > >I have i

[PATCH] better UTF-8 support for buffer_sample

2014-03-08 Thread Kosuke ASAMI
I have implemented a better UTF-8 support for buffer_sample in choose-buffer and list-buffers. When an user enables UTF-8 on window option, choose-buffer and list-buffers show UTF-8 characters if so. Otherwise, they do as until now. utf8_buffers.patch Description: Binary data ---