1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05: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; break;
case ACT_EDIT_RIGHT: case ACT_EDIT_RIGHT:
#ifdef CONFIG_UTF_8 #ifdef CONFIG_UTF_8
if (fc->type == FC_TEXTAREA) {
status = textarea_op_right(fs, fc, utf8);
break;
}
if (utf8) { if (utf8) {
unsigned char *text = fs->value + fs->state; unsigned char *text = fs->value + fs->state;
unsigned char *end = strchr(text, '\0'); unsigned char *end = strchr(text, '\0');