mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 16:38:09 +08:00
Use IWYU.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#include <algorithm> // for min
|
||||
#include <iostream> // for operator<<, basic_ostream, wstringstream, stringstream, flush, cout, ostream
|
||||
#include <sstream> // IWYU pragma: keep
|
||||
|
||||
#include "ftxui/dom/node.hpp" // for Element, Node
|
||||
#include "ftxui/dom/requirement.hpp" // for Requirement
|
||||
#include "ftxui/screen/screen.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
|
||||
#include "ftxui/dom/node.hpp"
|
||||
#include "ftxui/screen/string.hpp"
|
||||
#include "ftxui/screen/terminal.hpp"
|
||||
#include "ftxui/screen/string.hpp" // for to_string, wchar_width
|
||||
#include "ftxui/screen/terminal.hpp" // for Terminal::Dimensions, Terminal
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
@@ -169,9 +169,9 @@ std::string Screen::ToString() {
|
||||
|
||||
auto width = wchar_width(c);
|
||||
if (width <= 0) {
|
||||
// Avoid an infinite loop for non-printable characters
|
||||
c = L' ';
|
||||
width = 1;
|
||||
// Avoid an infinite loop for non-printable characters
|
||||
c = L' ';
|
||||
width = 1;
|
||||
}
|
||||
ss << c;
|
||||
x += width;
|
||||
|
Reference in New Issue
Block a user