summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc5
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()