From 16ae64dfb48653e92f3969aa200dbbb11d78fac2 Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Mon, 1 Jul 2019 00:43:00 +0200 Subject: [PATCH] Fix using undefined value bug. --- include/ftxui/screen/screen.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ftxui/screen/screen.hpp b/include/ftxui/screen/screen.hpp index dcbba22..3d1eae8 100644 --- a/include/ftxui/screen/screen.hpp +++ b/include/ftxui/screen/screen.hpp @@ -62,8 +62,8 @@ class Screen { Box stencil; struct Cursor { - int x; - int y; + int x = 0; + int y = 0; }; Cursor cursor() const { return cursor_; } void SetCursor(Cursor cursor) { cursor_ = cursor; }