From 3829734fa97a2ecf0cfe5e696ba839de6fa86e8c Mon Sep 17 00:00:00 2001 From: Arthur Sonzogni Date: Fri, 21 Jan 2022 23:02:29 +0100 Subject: [PATCH] Fix table separator (#311) --- src/ftxui/dom/table.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ftxui/dom/table.cpp b/src/ftxui/dom/table.cpp index 6333a25..8617f1a 100644 --- a/src/ftxui/dom/table.cpp +++ b/src/ftxui/dom/table.cpp @@ -272,7 +272,7 @@ void TableSelection::SeparatorVertical(BorderStyle style) { for (int y = y_min_ + 1; y <= y_max_ - 1; ++y) { for (int x = x_min_ + 1; x <= x_max_ - 1; ++x) { if (x % 2 == 0) { - table_->elements_[y][x] = text(charset[style][5]); + table_->elements_[y][x] = separatorCharacter(charset[style][5]); } } } @@ -282,7 +282,7 @@ void TableSelection::SeparatorHorizontal(BorderStyle style) { for (int y = y_min_ + 1; y <= y_max_ - 1; ++y) { for (int x = x_min_ + 1; x <= x_max_ - 1; ++x) { if (y % 2 == 0) { - table_->elements_[y][x] = text(charset[style][4]); + table_->elements_[y][x] = separatorCharacter(charset[style][4]); } } }