mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 10:40:00 +08:00
Fix border charset array being to large (#421)
This for some reason caused the clang compiler to crash, while also being incorrect as the tables are actually only 5x6. See the LLVM issue here: https://github.com/llvm/llvm-project/issues/56016
This commit is contained in:
parent
81e086788d
commit
094d8d9d0a
@ -14,7 +14,7 @@
|
||||
namespace ftxui {
|
||||
|
||||
using Charset = std::array<std::string, 6>; // NOLINT
|
||||
using Charsets = std::array<Charset, 6>; // NOLINT
|
||||
using Charsets = std::array<Charset, 5>; // NOLINT
|
||||
// NOLINTNEXTLINE
|
||||
static Charsets simple_border_charset = {
|
||||
Charset{"┌", "┐", "└", "┘", "─", "│"},
|
||||
|
@ -14,7 +14,7 @@ bool IsCell(int x, int y) {
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE
|
||||
static std::string charset[6][6] = {
|
||||
static std::string charset[5][6] = {
|
||||
{"┌", "┐", "└", "┘", "─", "│"}, //
|
||||
{"┏", "┓", "┗", "┛", "━", "┃"}, //
|
||||
{"╔", "╗", "╚", "╝", "═", "║"}, //
|
||||
|
Loading…
Reference in New Issue
Block a user