diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-27 16:32:25 +0200 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-10-04 09:54:06 -0400 |
commit | 53fcc7bda272734c92701ba66c7dc28b98bd2c4a (patch) | |
tree | 43941b97d288d6aca60e4f2b16178fd4ce3c7cf1 | |
parent | 728c1a5ab082e037b8723d6beaa7ab0d02bafb36 (diff) | |
download | efl-53fcc7bda272734c92701ba66c7dc28b98bd2c4a.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 e8ea5d2495..7e780e11e1 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); |