Hirohito Higashi wrote:

> How to reproduce:
> - Run vanilla Vim with utf-8 encoding,
>   $ vim -Nu NONE --cmd "set enc=utf-8"
> - set utf-8 characters.
>   :call setline(1, "・最初から最後まで最強のVimは最高")
> - Jump cursor to 最
>   f最
> - Jump cursor to the next one.
>   ;
> 
> Expected behavior:
> - Jump cursor to the next one. 
> ・最初から最後まで最強のVimは最高
>           ^
> Actual behavior:
> - Cursor does not move.
> 
> 
> Investigation result:
> - When typed f最
> searchc() [search.c:1628]
> 1628        *lastc = c;
>   `c` has been assigned to `*lastc` with downcast from int to char_u.
>   `c` assigned Unicode point.
> - 最's Unicode point is U+6700
>   http://www.fileformat.info/info/unicode/char/6700/index.htm
>   That is, `*lastc` is assigned to 0x00.
> - When typed ;
> 1646        if (*lastc == NUL)
> 1647            return FAIL;
>   Actually, although the code of utf-8 is stored in `lastc_bytes`, processing 
> is not performed correctly because it matches the above judgment.
> 
> 
> Attached patch fixes this problem.
> Please check it.

Thanks.  The implementation is quite clumsy.  But your patch does fix
it.

-- 
hundred-and-one symptoms of being an internet addict:
93. New mail alarm on your palmtop annoys other churchgoers.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui