From 934e62b502b959738e6459a8f029693d32132c71 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 30 Nov 2011 14:18:54 +0000 Subject: [PATCH] stop clearing selections all the time --- src/main.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.cc b/src/main.cc index bd1775fb..36cf3445 100644 --- a/src/main.cc +++ b/src/main.cc @@ -309,7 +309,6 @@ void do_insert(Window& window, IncrementalInserter::Mode mode) } draw_window(window); } - window.clear_selections(); } template @@ -536,21 +535,18 @@ void do_search_next(Window& window) void do_yank(Window& window, int count) { RegisterManager::instance()['"'] = window.selection_content(); - window.clear_selections(); } void do_erase(Window& window, int count) { RegisterManager::instance()['"'] = window.selection_content(); window.erase(); - window.clear_selections(); } void do_change(Window& window, int count) { RegisterManager::instance()['"'] = window.selection_content(); do_insert(window, IncrementalInserter::Mode::Change); - window.clear_selections(); } template @@ -560,7 +556,6 @@ void do_paste(Window& window, int count) window.append(RegisterManager::instance()['"']); else window.insert(RegisterManager::instance()['"']); - window.clear_selections(); } void do_select_regex(Window& window, int count)