mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
LibLine: Convert String::format() => String::formatted()
This commit is contained in:
parent
4e6d2374b6
commit
90ee84621f
2 changed files with 6 additions and 6 deletions
|
@ -155,7 +155,7 @@ void XtermSuggestionDisplay::display(const SuggestionManager& manager)
|
|||
if (m_pages.size() > 1) {
|
||||
auto left_arrow = page_index > 0 ? '<' : ' ';
|
||||
auto right_arrow = page_index < m_pages.size() - 1 ? '>' : ' ';
|
||||
auto string = String::format("%c page %zu of %zu %c", left_arrow, page_index + 1, m_pages.size(), right_arrow);
|
||||
auto string = String::formatted("{:c} page {} of {} {:c}", left_arrow, page_index + 1, m_pages.size(), right_arrow);
|
||||
|
||||
if (string.length() > m_num_columns - 1) {
|
||||
// This would overflow into the next line, so just don't print an indicator.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue