1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-02 03:46:21 -04:00

The missing code, I suppose. Fixed moving right in textareas in UTF-8 mode.

First move was by two cells.
This commit is contained in:
Witold Filipczyk 2006-07-23 15:23:19 +02:00 committed by Witold Filipczyk
parent 58b158871c
commit 4263af97a9

View File

@ -1328,6 +1328,10 @@ field_op(struct session *ses, struct document_view *doc_view,
break;
case ACT_EDIT_RIGHT:
#ifdef CONFIG_UTF_8
if (fc->type == FC_TEXTAREA) {
status = textarea_op_right(fs, fc, utf8);
break;
}
if (utf8) {
unsigned char *text = fs->value + fs->state;
unsigned char *end = strchr(text, '\0');