diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-10-13 19:31:24 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-10-13 19:31:24 +0100 |
| commit | 572cf9d6b20b89cafa3cae067e1a071243a8d2e1 (patch) | |
| tree | bf91090a9938c0112e25d3a18cb9dd372c50170d /src | |
| parent | 49557f5b17f8fc06fbdb55d197cd38f9984d9a79 (diff) | |
Fix file change detection not working in certain cases
Files opened from the command line where not handled correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_handler.cc | 5 |
1 files 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() |
