summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibLine/Editor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-07 20:47:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-07 21:12:09 +0200
commitc1967fca0dd0dd78143f8505cbb48b1836481a47 (patch)
tree7b5b321c7996171d216598fa2612ac6685f632d4 /Userland/Libraries/LibLine/Editor.cpp
parentc7e9b6d00f728a59f0e8953c3dc851bc975b805b (diff)
downloadserenity-c1967fca0dd0dd78143f8505cbb48b1836481a47.zip
LibLine: Convert StringBuilder::appendf() => AK::Format
Diffstat (limited to 'Userland/Libraries/LibLine/Editor.cpp')
-rw-r--r--Userland/Libraries/LibLine/Editor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp
index 36dcffae4d..9a59d611cc 100644
--- a/Userland/Libraries/LibLine/Editor.cpp
+++ b/Userland/Libraries/LibLine/Editor.cpp
@@ -1506,7 +1506,7 @@ String Style::to_string() const
if (m_foreground.m_is_rgb) {
builder.join(", ", m_foreground.m_rgb_color);
} else {
- builder.appendf("(XtermColor) %d", (int)m_foreground.m_xterm_color);
+ builder.appendff("(XtermColor) {}", (int)m_foreground.m_xterm_color);
}
builder.append("), ");
}
@@ -1516,7 +1516,7 @@ String Style::to_string() const
if (m_background.m_is_rgb) {
builder.join(' ', m_background.m_rgb_color);
} else {
- builder.appendf("(XtermColor) %d", (int)m_background.m_xterm_color);
+ builder.appendff("(XtermColor) {}", (int)m_background.m_xterm_color);
}
builder.append("), ");
}
@@ -1531,7 +1531,7 @@ String Style::to_string() const
builder.append("Italic, ");
if (!m_hyperlink.is_empty())
- builder.appendf("Hyperlink(\"%s\"), ", m_hyperlink.m_link.characters());
+ builder.appendff("Hyperlink(\"{}\"), ", m_hyperlink.m_link);
builder.append("}");