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:
AMS21 2022-06-14 21:03:03 +02:00 committed by GitHub
parent 81e086788d
commit 094d8d9d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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{"", "", "", "", "", ""},

View File

@ -14,7 +14,7 @@ bool IsCell(int x, int y) {
}
// NOLINTNEXTLINE
static std::string charset[6][6] = {
static std::string charset[5][6] = {
{"", "", "", "", "", ""}, //
{"", "", "", "", "", ""}, //
{"", "", "", "", "", ""}, //