projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6502ea9
)
Evas textblock: Fixed cursor pos set to work correctly in case the character being...
author
Tom Hacohen
<tom@stosb.com>
Mon, 10 Jan 2011 07:23:31 +0000
(07:23 +0000)
committer
Tom Hacohen
<tom@stosb.com>
Mon, 10 Jan 2011 07:23:31 +0000
(07:23 +0000)
SVN revision: 56020
legacy/evas/src/lib/canvas/evas_object_textblock.c
patch
|
blob
|
history
diff --git
a/legacy/evas/src/lib/canvas/evas_object_textblock.c
b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index
7865a33
..
3cf221d
100644
(file)
--- a/
legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/
legacy/evas/src/lib/canvas/evas_object_textblock.c
@@
-5356,15
+5356,17
@@
evas_textblock_cursor_pos_set(Evas_Textblock_Cursor *cur, int _pos)
cur->node = n;
cur->pos = pos;
}
- else
+ else
if (o->text_nodes)
{
+ /* In case we went pass the last node, we need to put the cursor
+ * at the absolute end. */
Evas_Object_Textblock_Node_Text *last_n;
last_n = _NODE_TEXT(EINA_INLIST_GET(o->text_nodes)->last);
- cur->node = last_n;
- cur->pos = 0;
+ pos = eina_ustrbuf_length_get(last_n->unicode);
- evas_textblock_cursor_paragraph_char_last(cur);
+ cur->node = last_n;
+ cur->pos = pos;
}
}