summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2018-03-24 10:40:14 +0000
committerAndy Williams <andy@andywilliams.me>2018-07-22 17:03:44 +0100
commit3ca3f865fd14e1058cdf33feb6ed6f63c83d0c6f (patch)
tree1e76150f4f674ba66d084c78bbe6c96ab3579d48
parent1485cf9df5f0a601fdfb17c9647168b8a47ef07f (diff)
elm_code: (cherry-pick) Fix cusor pos after newline when indenting with tabs
@fix
-rw-r--r--src/lib/elementary/elm_code_widget_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_code_widget_text.c b/src/lib/elementary/elm_code_widget_text.c
index 3b99305815..ce1db18ccb 100644
--- a/src/lib/elementary/elm_code_widget_text.c
+++ b/src/lib/elementary/elm_code_widget_text.c
@@ -284,8 +284,8 @@ _elm_code_widget_text_at_cursor_insert_do(Elm_Code_Widget *widget, const char *t
284 if (indent > 0) 284 if (indent > 0)
285 elm_code_line_text_insert(line, 0, indent_text, indent); 285 elm_code_line_text_insert(line, 0, indent_text, indent);
286 286
287 elm_obj_code_widget_cursor_position_set(widget, row, indent + 1); 287 col = elm_code_widget_line_text_column_width_to_position(widget, line, indent + 1);
288 elm_obj_code_widget_cursor_position_get(widget, &row, &col); 288 elm_obj_code_widget_cursor_position_set(widget, row, col);
289 } 289 }
290 } 290 }
291 291