diff options
-rw-r--r-- | src/lib/elementary/elm_code_widget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index 06715c75ce..62ff893465 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c | |||
@@ -285,10 +285,10 @@ _elm_code_widget_fill_cursor(Elm_Code_Widget *widget, unsigned int number, int g | |||
285 | elm_layout_signal_emit(pd->cursor_rect, "elm,action,focus", "elm"); | 285 | elm_layout_signal_emit(pd->cursor_rect, "elm,action,focus", "elm"); |
286 | 286 | ||
287 | evas_object_resize(pd->cursor_rect, cw/8, ch); | 287 | evas_object_resize(pd->cursor_rect, cw/8, ch); |
288 | evas_object_show(pd->cursor_rect); | ||
289 | } | 288 | } |
290 | 289 | ||
291 | evas_object_move(pd->cursor_rect, cx, cy); | 290 | evas_object_move(pd->cursor_rect, cx, cy); |
291 | evas_object_show(pd->cursor_rect); | ||
292 | } | 292 | } |
293 | } | 293 | } |
294 | 294 | ||
@@ -400,6 +400,9 @@ _elm_code_widget_fill_range(Elm_Code_Widget *widget, unsigned int first_row, uns | |||
400 | if (newline && !elm_obj_code_widget_line_visible_get(widget, newline)) | 400 | if (newline && !elm_obj_code_widget_line_visible_get(widget, newline)) |
401 | return; | 401 | return; |
402 | 402 | ||
403 | // cursor will be shown if it should be visible | ||
404 | evas_object_hide(pd->cursor_rect); | ||
405 | |||
403 | for (y = first_row; y <= last_row; y++) | 406 | for (y = first_row; y <= last_row; y++) |
404 | { | 407 | { |
405 | line = elm_code_file_line_get(pd->code->file, y); | 408 | line = elm_code_file_line_get(pd->code->file, y); |