1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-26 21:22:00 +03:00

stop clearing selections all the time

This commit is contained in:
Maxime Coste 2011-11-30 14:18:54 +00:00
parent d8dd782960
commit 934e62b502

View File

@ -309,7 +309,6 @@ void do_insert(Window& window, IncrementalInserter::Mode mode)
} }
draw_window(window); draw_window(window);
} }
window.clear_selections();
} }
template<bool append> template<bool append>
@ -536,21 +535,18 @@ void do_search_next(Window& window)
void do_yank(Window& window, int count) void do_yank(Window& window, int count)
{ {
RegisterManager::instance()['"'] = window.selection_content(); RegisterManager::instance()['"'] = window.selection_content();
window.clear_selections();
} }
void do_erase(Window& window, int count) void do_erase(Window& window, int count)
{ {
RegisterManager::instance()['"'] = window.selection_content(); RegisterManager::instance()['"'] = window.selection_content();
window.erase(); window.erase();
window.clear_selections();
} }
void do_change(Window& window, int count) void do_change(Window& window, int count)
{ {
RegisterManager::instance()['"'] = window.selection_content(); RegisterManager::instance()['"'] = window.selection_content();
do_insert(window, IncrementalInserter::Mode::Change); do_insert(window, IncrementalInserter::Mode::Change);
window.clear_selections();
} }
template<bool append> template<bool append>
@ -560,7 +556,6 @@ void do_paste(Window& window, int count)
window.append(RegisterManager::instance()['"']); window.append(RegisterManager::instance()['"']);
else else
window.insert(RegisterManager::instance()['"']); window.insert(RegisterManager::instance()['"']);
window.clear_selections();
} }
void do_select_regex(Window& window, int count) void do_select_regex(Window& window, int count)