Vim6 Part6
■ このスレッドは過去ログ倉庫に格納されています
0771KoRoN@Vim%Chalice ◆8XALICEsdk
NGNG*** src/normal.c.origFri Oct 31 21:41:28 2003
--- src/normal.cFri Oct 31 21:51:54 2003
***************
*** 4946,4951 ****
--- 4946,4959 ----
*pp = ml_get_pos(&VIsual);
*lenp = curwin->w_cursor.col - VIsual.col + 1;
}
+ #ifdef FEAT_MBYTE
+ /* Adjust *lenp which doesn't break a multibyte character. */
+ if (has_mbyte)
+ {
+ /* (*lemp - 1) points leadbyte of last character in selected string. */
+ *lenp += (*mb_ptr2len_check)(*pp + (*lenp - 1)) - 1;
+ }
+ #endif
reset_VIsual_and_resel();
return OK;
}
■ このスレッドは過去ログ倉庫に格納されています