Re: precedes breaks cursor position.

2012-06-07 Fir de Conversatie mattn
I updated patch: https://gist.github.com/2886056 It should not check the character on cursor is double-width or not with looking mb_ptr2cell(ptr). It should check with looking mb_char2cells(mb_c) before update mb_c. Thanks. On Thursday, June 7, 2012 3:03:37 AM UTC+9, Bram Moolenaar wrote:

Re: precedes breaks cursor position.

2012-06-06 Fir de Conversatie mattn
If precedes is '', a b c AABBCC (AA BB CC mean mult-byte) Below should be b c BBCC ( means trail of multi-byte) Below is a patch. https://gist.github.com/2881320 Bram, please check. On Wednesday, June 6, 2012 9:25:25 AM UTC+9, mattn wrote: I'll write a patch later. On Wednesday,

Re: precedes breaks cursor position.

2012-06-06 Fir de Conversatie Yasuhiro MATSUMOTO
Seems to be broken patch, I'll update in later. On 6/6/12, mattn mattn...@gmail.com wrote: If precedes is '', a b c AABBCC (AA BB CC mean mult-byte) Below should be b c BBCC ( means trail of multi-byte) Below is a patch. https://gist.github.com/2881320 Bram, please check. On

Re: precedes breaks cursor position.

2012-06-06 Fir de Conversatie Yasuhiro MATSUMOTO
Seems to be broken patch, I'll update in later. On 6/6/12, mattn mattn...@gmail.com wrote: If precedes is '', a b c AABBCC (AA BB CC mean mult-byte) Below should be b c BBCC ( means trail of multi-byte) Below is a patch. https://gist.github.com/2881320 Bram, please check. On

Re: precedes breaks cursor position.

2012-06-06 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: If precedes is '', a b c AABBCC (AA BB CC mean mult-byte) Below should be b c BBCC ( means trail of multi-byte) Below is a patch. https://gist.github.com/2881320 Bram, please check. Thanks for the patch. I'll check it out. -- How To Keep

Re: precedes breaks cursor position.

2012-06-05 Fir de Conversatie Ben Fritz
On Monday, June 4, 2012 8:11:34 PM UTC-5, mattn wrote: set listchars=tab:-,trail:-,eol:\|,precedes: This occur with multi-byte characters that long text over width. http://go-gyazo.appspot.com/1f5faa5d80b6b1f9.png This occur windows/linux both in latest version of vim. So, is the

Re: precedes breaks cursor position.

2012-06-05 Fir de Conversatie mattn
I'll write a patch later. On Wednesday, June 6, 2012 12:22:43 AM UTC+9, Ben Fritz wrote: On Monday, June 4, 2012 8:11:34 PM UTC-5, mattn wrote: set listchars=tab:-,trail:-,eol:\|,precedes: This occur with multi-byte characters that long text over width.

Re: precedes breaks cursor position.

2012-06-04 Fir de Conversatie Ben Fritz
On Monday, June 4, 2012 12:36:43 AM UTC-5, mattn wrote: Hi. If listchars contains precedes, cursor position moves above wrong position. I've had this setting for quite some time: listchars=nbsp:␣,conceal:⋯,tab:▕—,trail:ˑ,precedes:…,extends:… and have never noticed any problems with cursor

Re: precedes breaks cursor position.

2012-06-04 Fir de Conversatie mattn
set listchars=tab:-,trail:-,eol:\|,precedes: This occur with multi-byte characters that long text over width. http://go-gyazo.appspot.com/1f5faa5d80b6b1f9.png This occur windows/linux both in latest version of vim. On Tuesday, June 5, 2012 12:05:00 AM UTC+9, Ben Fritz wrote: On Monday, June