OSDN Git Service

自動拾いエディタの検索モード時に, 日本語の文字列に対してカーソルを左
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 21 Oct 2003 14:08:23 +0000 (14:08 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 21 Oct 2003 14:08:23 +0000 (14:08 +0000)
移動させると1byteだけカーソルが移動して, 漢字の右バイトだけ壊すような
操作ができるバグを修正.

src/autopick.c

index abbf2ce..4271fb8 100644 (file)
@@ -3177,7 +3177,7 @@ static byte get_string_for_search(object_type **o_handle, cptr *search_strp)
                                int next_pos = i + 1;
 
 #ifdef JP
-                               if (iskanji(buf[next_pos])) next_pos++;
+                               if (iskanji(buf[i])) next_pos++;
 #endif
 
                                /* Is there the cursor at next position? */