hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=3771fc8afb46490a83061b88ae0aeb9b0634ead6
commit 3771fc8afb46490a83061b88ae0aeb9b0634ead6 Author: ChunEon Park <her...@hermet.pe.kr> Date: Sat Jul 26 14:05:18 2014 +0900 edc_editor - fix the disappear scrollable functionality. Reproduce Step: a. Set font scale to 2.0; b. Set entry cursor to 1st position; c. Press Enter; d. Set cursor to 1st position; e. Press backspace; f. Press Del; Current result: disappear scrollable functionality; Expected result: delete 1st line. Signed-Off-By:Kateryna Fesyna(k.fes...@samsung.com) --- AUTHORS | 1 + src/bin/edc_editor.c | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/AUTHORS b/AUTHORS index 4b055c1..1c3496d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -5,3 +5,4 @@ Daniel Juyung Seo <seojuyu...@gmail.com> Ryuan Choi <ryuan.c...@gmail.com> Jihoon Kim <jihoon48....@samsung.com> The Rasterman (Carsten Haitzler) <ras...@rasterman.com> +Kateryna Fesyna <k.fes...@samsung.com> diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c index 8ec2990..506c97d 100644 --- a/src/bin/edc_editor.c +++ b/src/bin/edc_editor.c @@ -1228,13 +1228,17 @@ edit_line_decrease(edit_data *ed, int cnt) Evas_Object *textblock = elm_entry_textblock_get(ed->en_line); Evas_Textblock_Cursor *cur1 = evas_object_textblock_cursor_new(textblock); - evas_textblock_cursor_line_set(cur1, (ed->line_max - cnt - 1)); - evas_textblock_cursor_line_char_last(cur1); - Evas_Textblock_Cursor *cur2 = evas_object_textblock_cursor_new(textblock); - evas_textblock_cursor_paragraph_last(cur2); - evas_textblock_cursor_range_delete(cur1, cur2); + int i = cnt; + while (i) + { + evas_textblock_cursor_paragraph_last(cur1); + evas_textblock_cursor_paragraph_prev(cur1); + evas_textblock_cursor_paragraph_last(cur2); + evas_textblock_cursor_range_delete(cur1, cur2); + i--; + } evas_textblock_cursor_free(cur1); evas_textblock_cursor_free(cur2); --