From 4aa5a9a3f617b5a9d596c8c6e02d385e3d2bcfed Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 3 Apr 2013 19:18:17 +0200 Subject: [PATCH] display a message in the status line when yanking --- src/main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cc b/src/main.cc index 1ae2da8f..bb63be0e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -255,6 +255,7 @@ void use_selection_as_search_pattern(Context& context) void do_yank(Context& context) { RegisterManager::instance()['"'] = context.editor().selections_content(); + context.print_status("yanked " + int_to_str(context.editor().selections().size()) + " selections"); } void do_cat_yank(Context& context) @@ -264,6 +265,8 @@ void do_cat_yank(Context& context) for (auto& sel : sels) str += sel; RegisterManager::instance()['"'] = memoryview(str); + context.print_status("concatenated and yanked " + + int_to_str(sels.size()) + " selections"); } void do_erase(Context& context)