mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-04 13:38:14 +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:
		@@ -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] = {
 | 
			
		||||
    {"┌", "┐", "└", "┘", "─", "│"},  //
 | 
			
		||||
    {"┏", "┓", "┗", "┛", "━", "┃"},  //
 | 
			
		||||
    {"╔", "╗", "╚", "╝", "═", "║"},  //
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user