git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@61344
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
/* If we are after the last paragraph, use the last position in the
* text. */
evas_textblock_cursor_paragraph_last(cur);
- evas_textblock_cursor_char_next(cur);
if (cur->node && cur->node->par)
{
line_no = cur->node->par->line_no;
}
return line_no;
}
+ else if (y < 0)
+ {
+ int line_no = 0;
+ evas_textblock_cursor_paragraph_first(cur);
+ if (cur->node && cur->node->par)
+ {
+ line_no = cur->node->par->line_no;
+ }
+ return line_no;
+ }
return -1;
}