summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-02-02 18:47:39 +0000
committerAndy Williams <andy@andywilliams.me>2017-02-02 18:47:59 +0000
commitd2406c37000a0068d206a1fe83d112ab36adc443 (patch)
tree5af46e157239d8ca223ee1cc48e0995fdc98e832
parent62d6b4072cf2acc243a29c50dafc4660912058b4 (diff)
downloadefl-d2406c37000a0068d206a1fe83d112ab36adc443.tar.gz
elm_code: Fix empty selection checks
-rw-r--r--src/lib/elementary/elm_code_widget_selection.c3
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;