summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-05-13 11:18:21 +0100
committerMaxime Coste <mawww@kakoune.org>2017-05-13 11:18:21 +0100
commit468bd63569adeb6fd2abec067ca338539bb717f4 (patch)
tree54cb2cf8d50ed4ca96027bab7b7b31d96d3f9d3d /src/client.cc
parent3a0d9481ac0d037deb43fe93f35318acae763d6b (diff)
Tweak buffer change code so that WinDisplay hooks can use info boxes
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cc b/src/client.cc
index d41a1ba9..7389b224 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -179,9 +179,9 @@ void Client::change_buffer(Buffer& buffer)
context().selections_write_only() = std::move(ws.selections);
context().set_window(*m_window);
m_window->set_dimensions(m_ui->dimensions());
- force_redraw();
m_window->hooks().run_hook("WinDisplay", buffer.name(), context());
+ force_redraw();
}
static bool is_inline(InfoStyle style)