diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-27 16:32:25 +0200 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2019-09-30 10:46:38 +0200 |
commit | 9bc9eff716a4fde5514bf4a9225a25a9dd11e2d0 (patch) | |
tree | 35341c222e4b78b6d8d6cc798364f5acc880681b | |
parent | df3cf016287d01e886df0888f4daecf2b4072629 (diff) | |
download | efl-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.c | 2 |
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); |