diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-12-21 19:06:51 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-12-21 19:06:51 +0000 |
| commit | 67c08e598b1415753cf6fa366c23536200308e3c (patch) | |
| tree | d1045ba047eb95611436ee5ad71046fffa4571fa /src | |
| parent | f77fc3980b9ca86163a9d8623e1adcd1b845e62a (diff) | |
IncrementalInserter: preserve selection through hook call
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.cc b/src/window.cc index 952bc558..fb294dd7 100644 --- a/src/window.cc +++ b/src/window.cc @@ -471,11 +471,13 @@ IncrementalInserter::~IncrementalInserter() { move_cursor(DisplayCoord(0, -1)); + m_window.push_selections(); try { HooksManager::instance().run_hook("WinInsertEnd", "", Context(m_window)); } catch (runtime_error& e) {} + m_window.pop_selections(); assert(m_window.m_current_inserter == this); m_window.m_current_inserter = nullptr; |
