From 4263af97a9503e95da9d4ea678e6cb3b5a61663d Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 23 Jul 2006 15:23:19 +0200 Subject: [PATCH] The missing code, I suppose. Fixed moving right in textareas in UTF-8 mode. First move was by two cells. --- src/viewer/text/form.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/viewer/text/form.c b/src/viewer/text/form.c index 092c7ccf..40cb5bd2 100644 --- a/src/viewer/text/form.c +++ b/src/viewer/text/form.c @@ -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');