Skip to content

Commit

Permalink
uterm always equals uterm
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Mar 10, 2025
1 parent 8ac6b3a commit 6ea6454
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libtermio/linenoise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ class linenoiseState {

bool Readline(std::string &line); // Primary linenoise entry point
void RefreshLine(); // Restore current line (used after WipeLine)
void
WipeLine(); // Temporarily removes line from screen - RefreshLine will restore
void WipeLine(); // Temporarily removes line from screen - RefreshLine will restore
void ClearScreen(); // Clear terminal window

/* Register a callback function to be called for tab-completion. */
Expand Down Expand Up @@ -1870,7 +1869,7 @@ inline bool isUnsupportedTerm(void) {
std::string uterm(unsupported_term[j]);
// https://stackoverflow.com/a/313990
std::transform(uterm.begin(), uterm.end(), uterm.begin(), [](unsigned char c){ return std::tolower(c); });
if (uterm == uterm)
if (uterm == sterm)
return true;
}
#endif
Expand Down

0 comments on commit 6ea6454

Please sign in to comment.