diff options
author | Andy Williams <andy@andywilliams.me> | 2017-02-02 18:47:39 +0000 |
---|---|---|
committer | Andy Williams <andy@andywilliams.me> | 2017-02-02 18:47:59 +0000 |
commit | d2406c37000a0068d206a1fe83d112ab36adc443 (patch) | |
tree | 5af46e157239d8ca223ee1cc48e0995fdc98e832 | |
parent | 62d6b4072cf2acc243a29c50dafc4660912058b4 (diff) | |
download | efl-d2406c37000a0068d206a1fe83d112ab36adc443.tar.gz |
elm_code: Fix empty selection checks
-rw-r--r-- | src/lib/elementary/elm_code_widget_selection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget_selection.c b/src/lib/elementary/elm_code_widget_selection.c index 1c4ecdefc7..c0358101a6 100644 --- a/src/lib/elementary/elm_code_widget_selection.c +++ b/src/lib/elementary/elm_code_widget_selection.c @@ -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; |