diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-03-04 20:46:26 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-03-04 20:46:26 +0000 |
| commit | c0e4268e1731f5730f0ba677d7109dda79386b54 (patch) | |
| tree | b31b2d645c50ac1203d91679bec57111c160c743 /src/input_handler.cc | |
| parent | 4e02e822fd7526ea02b1f836bca9437e00b76c8a (diff) | |
Reactivate direct file change check on entering normal mode
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 499778e8..6edc61b5 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -71,11 +71,11 @@ public: void on_enabled() override { - if (not context().has_client()) - return; - // Do not check buffer timestamp, we might already be executing the - // on next key of a buffer timestamp check. - m_fs_check_timer.set_next_date(Clock::now() + fs_check_timeout); + if (context().has_client()) + { + context().client().check_if_buffer_needs_reloading(); + m_fs_check_timer.set_next_date(Clock::now() + fs_check_timeout); + } context().hooks().run_hook("NormalBegin", "", context()); } |
