aligrudi / neatvi

A small vi/ex editor for editing bidirectional UTF-8 text

Home Page:http://litcave.rudi.ir/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lbuf_pair() is bugged with utf-8 and some other pair character

kyx0r opened this issue · comments

commented

@aligrudi Hello Ali, I found a weird corner case when lbuf_pair does not work.

Consider the following text:

'☺' ) {
}

paste it, and try using % while cursor is on { character, it will not work. Oddly enough it works if you do it from } character, or
if you remove the smiley face or if you remove the ) character

commented

@aligrudi Thanks, patch applied. I think it's a correct solution, haven't seen any other edge cases or problems with it. Feel free to apply it!