diff --git a/src/ftxui/dom/hbox.cpp b/src/ftxui/dom/hbox.cpp index b323414..6676e37 100644 --- a/src/ftxui/dom/hbox.cpp +++ b/src/ftxui/dom/hbox.cpp @@ -72,15 +72,15 @@ class HBox : public Node { return; } - const bool xmin_satured = + const bool xmin_saturated = selection.y_min < box_.y_min || selection.x_min < box_.x_min; - const bool xmax_satured = + const bool xmax_saturated = selection.y_max > box_.y_max || selection.x_max > box_.x_max; - if (xmin_satured) { + if (xmin_saturated) { selection.x_min = box_.x_min; } - if (xmax_satured) { + if (xmax_saturated) { selection.x_max = box_.x_max; } diff --git a/src/ftxui/dom/text.cpp b/src/ftxui/dom/text.cpp index 791c658..678c064 100644 --- a/src/ftxui/dom/text.cpp +++ b/src/ftxui/dom/text.cpp @@ -33,13 +33,13 @@ class Text : public Node { return; } - const bool xmin_satured = + const bool xmin_saturated = selection.y_min < box_.y_min || selection.x_min < box_.x_min; - const bool xmax_satured = + const bool xmax_saturated = selection.y_max > box_.y_max || selection.x_max > box_.x_max; - selection_start_ = xmin_satured ? box_.x_min : selection.x_min; - selection_end_ = xmax_satured ? box_.x_max : selection.x_max; + selection_start_ = xmin_saturated ? box_.x_min : selection.x_min; + selection_end_ = xmax_saturated ? box_.x_max : selection.x_max; has_selection = true; diff --git a/src/ftxui/dom/vbox.cpp b/src/ftxui/dom/vbox.cpp index 9a48f7c..361f5e2 100644 --- a/src/ftxui/dom/vbox.cpp +++ b/src/ftxui/dom/vbox.cpp @@ -72,14 +72,14 @@ class VBox : public Node { return; } - const bool ymin_satured = + const bool ymin_saturated = selection.x_min < box_.x_min || selection.y_min < box_.y_min; - const bool ymax_satured = + const bool ymax_saturated = selection.x_max > box_.x_max || selection.y_max > box_.y_max; - if (ymin_satured) { + if (ymin_saturated) { selection.y_min = box_.y_min; } - if (ymax_satured) { + if (ymax_saturated) { selection.y_max = box_.y_max; }