Show neat little tree in REPL.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -52,7 +52,7 @@ void ParseAndUpdate(const std::vector<std::u8string> lines, WINDOW* diagnosticsW
|
||||
const MalachScript::Diagnostics::Diagnostic* diag = nullptr;
|
||||
wclear(diagnosticsWindow);
|
||||
|
||||
if (logger.GetMessages().size() > 0) {
|
||||
if (!logger.GetMessages().empty()) {
|
||||
diag = &logger.GetMessages()[0];
|
||||
|
||||
wattron(diagnosticsWindow, COLOR_PAIR(1));
|
||||
@@ -74,9 +74,9 @@ void ParseAndUpdate(const std::vector<std::u8string> lines, WINDOW* diagnosticsW
|
||||
wrefresh(diagnosticsWindow);
|
||||
|
||||
wclear(parsedWindow);
|
||||
if (logger.GetMessages().size() == 0) {
|
||||
if (logger.GetMessages().empty()) {
|
||||
std::stringstream ss;
|
||||
parsedResult->Stringify(ss, 0);
|
||||
parsedResult->Stringify(ss, "", true);
|
||||
|
||||
waddstr(parsedWindow, ss.str().c_str());
|
||||
}
|
||||
@@ -86,6 +86,7 @@ void ParseAndUpdate(const std::vector<std::u8string> lines, WINDOW* diagnosticsW
|
||||
}
|
||||
|
||||
int main([[maybe_unused]] int argc, [[maybe_unused]] const char* argv[]) {
|
||||
setlocale(LC_ALL, "");
|
||||
initscr();
|
||||
cbreak();
|
||||
noecho();
|
||||
|
||||
Reference in New Issue
Block a user