From 572cf9d6b20b89cafa3cae067e1a071243a8d2e1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 13 Oct 2015 19:31:24 +0100 Subject: [PATCH] Fix file change detection not working in certain cases Files opened from the command line where not handled correctly. --- src/input_handler.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/input_handler.cc b/src/input_handler.cc index 212a1bbb..11cf161b 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -168,11 +168,9 @@ public: void on_enabled() override { if (context().has_client()) - { context().client().check_if_buffer_needs_reloading(); - m_fs_check_timer.set_next_date(Clock::now() + fs_check_timeout); - } + m_fs_check_timer.set_next_date(Clock::now() + fs_check_timeout); m_idle_timer.set_next_date(Clock::now() + idle_timeout); context().hooks().run_hook("NormalBegin", "", context()); @@ -1237,6 +1235,7 @@ InputHandler::InputHandler(SelectionList selections, Context::Flags flags, Strin : m_context(*this, std::move(selections), flags, std::move(name)) { m_mode_stack.emplace_back(new InputModes::Normal(*this)); + current_mode().on_enabled(); } InputHandler::~InputHandler()