IncrementalInserter: preserve selection through hook call
This commit is contained in:
parent
f77fc3980b
commit
67c08e598b
|
@ -471,11 +471,13 @@ IncrementalInserter::~IncrementalInserter()
|
||||||
{
|
{
|
||||||
move_cursor(DisplayCoord(0, -1));
|
move_cursor(DisplayCoord(0, -1));
|
||||||
|
|
||||||
|
m_window.push_selections();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HooksManager::instance().run_hook("WinInsertEnd", "", Context(m_window));
|
HooksManager::instance().run_hook("WinInsertEnd", "", Context(m_window));
|
||||||
}
|
}
|
||||||
catch (runtime_error& e) {}
|
catch (runtime_error& e) {}
|
||||||
|
m_window.pop_selections();
|
||||||
|
|
||||||
assert(m_window.m_current_inserter == this);
|
assert(m_window.m_current_inserter == this);
|
||||||
m_window.m_current_inserter = nullptr;
|
m_window.m_current_inserter = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user