[Patch] Fix removal of multi-byte characters in awful.prompt

2009-03-14 Thread Gregor Best
Hi people, the attached patch fixes a thing which has been bugging me for a long time: If you open a prompt, it lets you enter UTF-8 strings like "αλπψα" just fine, but if you then want to use BackSpace to remove these UTF-8 glyphs, you have to press it twice for each character. To fix this, i use

Re: [Patch] Fix removal of multi-byte characters in awful.prompt

2009-03-15 Thread Julien Danjou
Hi Gregor, At 1237059176 time_t, Gregor Best wrote: > the attached patch fixes a thing which has been bugging me for a long time: > If you open a prompt, it lets you enter UTF-8 strings like "αλπψα" just fine, > but if you then want to use BackSpace to remove these UTF-8 glyphs, you have > to > p

Re: [Patch] Fix removal of multi-byte characters in awful.prompt

2009-03-15 Thread Gregor Best
At Sun, 15 Mar 2009 10:05:20 +0100 Julien Danjou wrote: > Hi Gregor, > > At 1237059176 time_t, Gregor Best wrote: > > the attached patch fixes a thing which has been bugging me for a long time: > > If you open a prompt, it lets you enter UTF-8 strings like "αλπψα" just > > fine, but if you then w

Re: [Patch] Fix removal of multi-byte characters in awful.prompt

2009-03-15 Thread Gregor Best
At Sun, 15 Mar 2009 15:57:40 +0100 Gregor Best wrote: > At Sun, 15 Mar 2009 10:05:20 +0100 > Julien Danjou wrote: > > > Hi Gregor, > > > > At 1237059176 time_t, Gregor Best wrote: > > > the attached patch fixes a thing which has been bugging me for a long > > > time: If you open a prompt, it let

Re: [Patch] Fix removal of multi-byte characters in awful.prompt

2009-03-16 Thread Julien Danjou
At 1237131607 time_t, Gregor Best wrote: > Hmm, I just noticed, awful.prompt.prompt_text_with_cursor() needs some > reworking for multibyte characters, too, and I guess the same applies for the > part of prompt.run() which allows to move the cursor via left / right > keypresses and the part which a