diff --git a/include/ftxui/screen/box.hpp b/include/ftxui/screen/box.hpp index 719e1bd5..e421d1d5 100644 --- a/include/ftxui/screen/box.hpp +++ b/include/ftxui/screen/box.hpp @@ -4,10 +4,10 @@ namespace ftxui { struct Box { - int x_min; - int x_max; - int y_min; - int y_max; + int x_min = 0; + int x_max = 0; + int y_min = 0; + int y_max = 0; static Box Intersection(Box a, Box b); bool Contain(int x, int y); diff --git a/src/ftxui/component/renderer.cpp b/src/ftxui/component/renderer.cpp index 923a28ff..5c568f8f 100644 --- a/src/ftxui/component/renderer.cpp +++ b/src/ftxui/component/renderer.cpp @@ -75,7 +75,7 @@ Component Renderer(Component child, std::function render) { /// if (focused) /// return text("My interface") | inverted; /// else -/// return text("My interface") | inverted; +/// return text("My interface"); /// }); /// screen.Loop(renderer); /// ```