summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-09-27 16:32:25 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2019-09-30 10:46:38 +0200
commit9bc9eff716a4fde5514bf4a9225a25a9dd11e2d0 (patch)
tree35341c222e4b78b6d8d6cc798364f5acc880681b
parentdf3cf016287d01e886df0888f4daecf2b4072629 (diff)
downloadefl-9bc9eff716a4fde5514bf4a9225a25a9dd11e2d0.tar.gz
elm_code_widget: initialize these vars correctly
otherwise we are setting a cursor from time to time at a uninitialized position. Which causes disappeared cursors Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D10224
-rw-r--r--src/lib/elementary/elm_code_widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 17ee786791..7979a4d28a 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -311,7 +311,7 @@ _elm_code_widget_fill_whitespace(Elm_Code_Widget *widget, Eina_Unicode character
static void
_elm_code_widget_cursor_update(Elm_Code_Widget *widget, Elm_Code_Widget_Data *pd)
{
- Evas_Coord cx, cy, cw, ch;
+ Evas_Coord cx = 0, cy = 0, cw = 0, ch = 0;
elm_code_widget_geometry_for_position_get(widget, pd->cursor_line, pd->cursor_col, &cx, &cy, &cw, &ch);