summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-05-13 14:23:07 +0200
committerMaxime Coste <frrrwww@gmail.com>2013-05-13 18:43:38 +0200
commit26f0fd4cc6577e52b08604d32469b221242bfb9c (patch)
treeb63d2936ac57352a0cb3a4a863cc735dacedaf1c /src/normal.cc
parent56ab33c9d6dc0255bf15ebd1fbc216766ffb247c (diff)
Use more std::* for string handling
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 8d7b19cb..796db658 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -320,7 +320,8 @@ void use_selection_as_search_pattern(Context& context)
void yank(Context& context)
{
RegisterManager::instance()['"'] = context.editor().selections_content();
- context.print_status({ "yanked " + int_to_str(context.editor().selections().size()) + " selections", get_color("Information") });
+ context.print_status({ "yanked " + to_string(context.editor().selections().size()) +
+ " selections", get_color("Information") });
}
void cat_yank(Context& context)
@@ -331,7 +332,7 @@ void cat_yank(Context& context)
str += sel;
RegisterManager::instance()['"'] = memoryview<String>(str);
context.print_status({ "concatenated and yanked " +
- int_to_str(sels.size()) + " selections", get_color("Information") });
+ to_string(sels.size()) + " selections", get_color("Information") });
}
void erase(Context& context)
@@ -496,7 +497,7 @@ void deindent(Context& context)
auto restore_sels = on_scope_end([&]{ editor.select((SelectionList)std::move(sels)); });
editor.select(select_whole_lines);
editor.multi_select(std::bind(select_all_matches, _1,
- Regex{"^\\h{1," + int_to_str(width) + "}"}));
+ Regex{"^\\h{1," + to_string(width) + "}"}));
editor.erase();
}