summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-05-17 08:33:06 +0100
committerAndy Williams <andy@andywilliams.me>2017-05-17 08:35:51 +0100
commitf425f041b3f864f44da8a6516414ca12203dbf24 (patch)
treebc853d16b0b72734c1804b977df2fc3fcec4d8ac
parent73f05a36d054496f6a9634c6fa7d724dbd8e25e9 (diff)
elm_code: Fix off by 1 in selection refactor
-rw-r--r--src/lib/elementary/elm_code_widget_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget_text.c b/src/lib/elementary/elm_code_widget_text.c
index a06fb8aa0b..a2098a29fe 100644
--- a/src/lib/elementary/elm_code_widget_text.c
+++ b/src/lib/elementary/elm_code_widget_text.c
@@ -290,7 +290,7 @@ _elm_code_widget_text_at_cursor_insert_do(Elm_Code_Widget *widget, const char *t
290 290
291 if (undo) 291 if (undo)
292 { 292 {
293 change = _elm_code_widget_change_create(col, row, end_col, end_row, text, length, EINA_TRUE); 293 change = _elm_code_widget_change_create(col, row, end_col - 1, end_row, text, length, EINA_TRUE);
294 _elm_code_widget_undo_change_add(widget, change); 294 _elm_code_widget_undo_change_add(widget, change);
295 _elm_code_widget_change_free(change); 295 _elm_code_widget_change_free(change);
296 } 296 }