summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-01 19:06:35 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-01 19:06:35 +0100
commitf19bb4fe6d1de14f9539768ad9a67391fc52ed87 (patch)
tree54ff5c0da1702afb910abe6d341b9e66f5f65cbd /src/normal.cc
parent57a03d84955a3811a029f7190b00f50b00af5521 (diff)
Port more code to use the format function instead of adhoc string concat
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 6ca83ab2..ef4231bf 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -585,14 +585,14 @@ void regex_prompt(Context& context, const String prompt, T func)
catch (RegexError& err)
{
if (event == PromptEvent::Validate)
- throw runtime_error("regex error: "_str + err.what());
+ throw runtime_error(format("regex error: {}", err.what()));
else
context.input_handler().set_prompt_face(get_face("Error"));
}
catch (std::runtime_error& err)
{
if (event == PromptEvent::Validate)
- throw runtime_error("regex error: "_str + err.what());
+ throw runtime_error(format("regex error: {}", err.what()));
else
{
context.input_handler().set_prompt_face(get_face("Error"));
@@ -643,7 +643,7 @@ void search_next(Context& context, NormalParams params)
}
catch (RegexError& err)
{
- throw runtime_error("regex error: "_str + err.what());
+ throw runtime_error(format("regex error: ", err.what()));
}
}
else