summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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