diff --git a/include/ftxui/dom/selection.hpp b/include/ftxui/dom/selection.hpp index 16f90c1d..7931b87e 100644 --- a/include/ftxui/dom/selection.hpp +++ b/include/ftxui/dom/selection.hpp @@ -19,7 +19,10 @@ struct SelectionOption { static SelectionOption Simple(); // Style: - std::function transform ; + std::function transform = [](Pixel& pixel) { + + pixel.inverted = true; + }; // Observers: /// Called when the selection changed.