diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-12-28 11:27:04 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-12-28 11:27:04 +1100 |
| commit | 22bfbd06af1d0257419a9c9e0f2e3b0ebff30ddb (patch) | |
| tree | 729191f76f46790eccd70e2d16a477352b87b9c6 /src/context.cc | |
| parent | 7c1d4f5bd61129530e30abd92c8f65893fdf8a93 (diff) | |
Redraw relevant clients after adding/removing highlighters
Diffstat (limited to 'src/context.cc')
| -rw-r--r-- | src/context.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/context.cc b/src/context.cc index 2a0822ec..07259c97 100644 --- a/src/context.cc +++ b/src/context.cc @@ -178,7 +178,6 @@ void Context::change_buffer(Buffer& buffer) m_last_buffer = contains(BufferManager::instance(), current) ? current : nullptr; } - m_window.reset(); if (has_client()) { client().info_hide(); @@ -186,7 +185,10 @@ void Context::change_buffer(Buffer& buffer) client().change_buffer(buffer); } else + { + m_window.reset(); m_selections = SelectionList{buffer, Selection{}}; + } if (has_input_handler()) input_handler().reset_normal_mode(); |
