hermet pushed a commit to branch enventor-0.3.

http://git.enlightenment.org/tools/enventor.git/commit/?id=7b711c9fc8b2a0e93827dfa67aaaee0ea4dec331

commit 7b711c9fc8b2a0e93827dfa67aaaee0ea4dec331
Author: ChunEon Park <[email protected]>
Date:   Sat Aug 2 18:15:22 2014 +0900

    editor: update current line status properly.
    
    put the line updation in the line inc/dec functions to be ensure.
    
    Conflicts:
    
        src/bin/redoundo.c
---
 src/bin/edc_editor.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index d10a3ee..a5404dc 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -266,8 +266,6 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, 
void *event_info)
         if (info->change.del.content[0] == ' ') return;
      }
 
-   stats_line_num_update(ed->cur_line, ed->line_max);
-
    if (!syntax_color) return;
    syntax_color_partial_update(ed, SYNTAX_COLOR_DEFAULT_TIME);
 }
@@ -1223,6 +1221,8 @@ edit_line_increase(edit_data *ed, int cnt)
         elm_entry_entry_append(ed->en_line, buf);
      }
    elm_entry_calc_force(ed->en_line);
+
+   stats_line_num_update(ed->cur_line, ed->line_max);
 }
 
 void
@@ -1252,4 +1252,5 @@ edit_line_decrease(edit_data *ed, int cnt)
    ed->line_max -= cnt;
 
    if (ed->line_max < 1) line_init(ed);
+   stats_line_num_update(ed->cur_line, ed->line_max);
 }

-- 


Reply via email to