elm_code: Fix empty selection checks

This commit is contained in:
Andy Williams 2017-02-02 18:47:39 +00:00
parent 62d6b4072c
commit d2406c3700
1 changed files with 2 additions and 1 deletions

View File

@ -500,7 +500,8 @@ elm_code_widget_selection_is_empty(Evas_Object *widget)
selection = elm_code_widget_selection_normalized_get(widget);
if (selection->start_col == selection->end_col &&
// check there is no space between start and end
if (selection->start_col == selection->end_col + 1 &&
selection->start_line == selection->end_line)
ret = EINA_TRUE;