editor: update current line status properly.

put the line updation in the line inc/dec functions to be ensure.

Conflicts:

	src/bin/redoundo.c
This commit is contained in:
ChunEon Park 2014-08-02 18:15:22 +09:00
parent cdd1f989fe
commit 7b711c9fc8
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}