summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-06-01 23:05:27 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-06-01 23:12:17 +0430
commit944855ca185f4d6a1587c174752446752775e040 (patch)
tree18984460dcaafeddbf9698a239939a43fa8e171d /Userland
parentc0d1a7588153d35f06a9ff5d009261099e6fc647 (diff)
downloadserenity-944855ca185f4d6a1587c174752446752775e040.zip
AK+Everywhere: Fix compiletime format parsing of replacement fields
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Shell/Shell.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp
index 94c7efcc66..aa985d8e7d 100644
--- a/Userland/Shell/Shell.cpp
+++ b/Userland/Shell/Shell.cpp
@@ -1998,16 +1998,16 @@ void Shell::possibly_print_error() const
warn("\x1b[31m");
size_t length_written_so_far = 0;
if (line == (i64)source_position.position->start_line.line_number) {
- warn(StringView { "{:~>{}}" }, "", 5 + source_position.position->start_line.line_column);
+ warn("{:~>{}}", "", 5 + source_position.position->start_line.line_column);
length_written_so_far += source_position.position->start_line.line_column;
} else {
- warn(StringView { "{:~>{}}" }, "", 5);
+ warn("{:~>{}}", "", 5);
}
if (line == (i64)source_position.position->end_line.line_number) {
- warn(StringView { "{:^>{}}" }, "", source_position.position->end_line.line_column - length_written_so_far);
+ warn("{:^>{}}", "", source_position.position->end_line.line_column - length_written_so_far);
length_written_so_far += source_position.position->start_line.line_column;
} else {
- warn(StringView { "{:^>{}}" }, "", current_line.length() - length_written_so_far);
+ warn("{:^>{}}", "", current_line.length() - length_written_so_far);
}
warnln("\x1b[0m");
}