From d755ab31f1ffa8b211d4e6b80187d98e36246fc9 Mon Sep 17 00:00:00 2001 From: Clement Roblot Date: Tue, 3 Dec 2024 15:02:22 +0700 Subject: [PATCH] More forgiving selection options --- include/ftxui/dom/selection.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.