summaryrefslogtreecommitdiff
path: root/src/lib
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 /src/lib
parent62d6b4072cf2acc243a29c50dafc4660912058b4 (diff)
elm_code: Fix empty selection checks
Diffstat (limited to 'src/lib')
-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)
500 500
501 selection = elm_code_widget_selection_normalized_get(widget); 501 selection = elm_code_widget_selection_normalized_get(widget);
502 502
503 if (selection->start_col == selection->end_col && 503 // check there is no space between start and end
504 if (selection->start_col == selection->end_col + 1 &&
504 selection->start_line == selection->end_line) 505 selection->start_line == selection->end_line)
505 ret = EINA_TRUE; 506 ret = EINA_TRUE;
506 507