Set the cursor to the end of the current line on entering the edit state of a multiline textentry widget.
diff --git a/contiki/lib/ctk-textentry-multiline.c b/contiki/lib/ctk-textentry-multiline.c
index 982cd95..50f0520 100644
--- a/contiki/lib/ctk-textentry-multiline.c
+++ b/contiki/lib/ctk-textentry-multiline.c
@@ -29,7 +29,7 @@
*
* This file is part of the Contiki operating system.
*
- * $Id: ctk-textentry-multiline.c,v 1.1 2005/05/04 21:57:08 oliverschmidt Exp $
+ * $Id: ctk-textentry-multiline.c,v 1.2 2005/05/04 23:07:17 oliverschmidt Exp $
*
*/
@@ -47,6 +47,13 @@
unsigned char len;
switch(c) {
+ case 0:
+ t->xpos = strlen(&t->text[t->ypos * t->len]);
+ if(t->xpos == t->len) {
+ --t->xpos;
+ }
+ return 1;
+
case CH_CURS_UP:
if(t->ypos == 0) {
t->xpos = 0;