summaryrefslogtreecommitdiff
path: root/src/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cc')
-rw-r--r--src/window.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/window.cc b/src/window.cc
index 0c7991c7..5f10618c 100644
--- a/src/window.cc
+++ b/src/window.cc
@@ -144,10 +144,7 @@ void Window::erase_noundo()
{
check_invariant();
for (auto& sel : m_selections)
- {
m_buffer.erase(sel.begin(), sel.end());
- sel = Selection(sel.begin(), sel.begin());
- }
scroll_to_keep_cursor_visible_ifn();
}
@@ -183,10 +180,7 @@ void Window::insert(const String& string)
void Window::insert_noundo(const String& string)
{
for (auto& sel : m_selections)
- {
m_buffer.insert(sel.begin(), string);
- sel.offset(string.length());
- }
scroll_to_keep_cursor_visible_ifn();
}