remove wrapper for Scrollpad::SetFormating() used with --enable-unicode

This commit is contained in:
Andrzej Rybczak
2009-09-16 22:21:17 +00:00
parent cf3f8350c0
commit 6723808c4f
3 changed files with 3 additions and 5 deletions

View File

@@ -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();

View File

@@ -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();
}
}

View File

@@ -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