Skip to content

Commit 6ea6454

Browse files
committed
uterm always equals uterm
1 parent 8ac6b3a commit 6ea6454

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libtermio/linenoise.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ class linenoiseState {
195195

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

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

0 commit comments

Comments
 (0)