remove wrapper for Scrollpad::SetFormating() used with --enable-unicode
This commit is contained in:
@@ -192,8 +192,8 @@ void Info::GetArtist()
|
||||
first = 0;
|
||||
}
|
||||
input.close();
|
||||
w->SetFormatting(fmtBold, "\n\nSimilar artists:\n", fmtBoldEnd, 0);
|
||||
w->SetFormatting(Config.color2, "\n * ", clEnd);
|
||||
w->SetFormatting(fmtBold, U("\n\nSimilar artists:\n"), fmtBoldEnd, 0);
|
||||
w->SetFormatting(Config.color2, U("\n * "), clEnd);
|
||||
// below is used so format won't be removed using RemoveFormatting() by accident.
|
||||
w->ForgetFormatting();
|
||||
w->Flush();
|
||||
|
||||
@@ -1724,7 +1724,7 @@ int main(int argc, char *argv[])
|
||||
ShowMessage("Searching...");
|
||||
Screen<Scrollpad> *s = static_cast<Screen<Scrollpad> *>(myScreen);
|
||||
s->Main()->RemoveFormatting();
|
||||
ShowMessage("%s", s->Main()->SetFormatting(fmtReverse, findme, fmtReverseEnd) || findme.empty() ? "Done!" : "No matching patterns found");
|
||||
ShowMessage("%s", s->Main()->SetFormatting(fmtReverse, TO_WSTRING(findme), fmtReverseEnd) || findme.empty() ? "Done!" : "No matching patterns found");
|
||||
s->Main()->Flush();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,9 +115,7 @@ namespace NCurses
|
||||
itsBuffer << obj;
|
||||
return *this;
|
||||
}
|
||||
|
||||
# ifdef _UTF8
|
||||
bool SetFormatting(short vb, const std::string &s, short ve, bool for_each = 1) { return SetFormatting(vb, ToWString(s), ve, for_each); }
|
||||
Scrollpad &operator<<(const std::string &s);
|
||||
# endif // _UTF8
|
||||
|
||||
|
||||
Reference in New Issue
Block a user