ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d2406c37000a0068d206a1fe83d112ab36adc443

commit d2406c37000a0068d206a1fe83d112ab36adc443
Author: Andy Williams <[email protected]>
Date:   Thu Feb 2 18:47:39 2017 +0000

    elm_code: Fix empty selection checks
---
 src/lib/elementary/elm_code_widget_selection.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_code_widget_selection.c 
b/src/lib/elementary/elm_code_widget_selection.c
index 1c4ecde..c035810 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;
 

-- 


Reply via email to