From baf0203b9dde15a604b21c4e8438c64b46a5fbfb Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 19 Aug 2015 13:41:16 +0100 Subject: Default register is not handled by the Normal input mode. Normal input mode will just pass 0 as the reg if it was not specified by the user, its yank/paste functions that should determine 0 means use '"' register. --- src/input_handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index fecf09bb..4b4bd300 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -246,7 +246,7 @@ public: get_face("Information"), InfoStyle::Prompt); it->func(context(), m_params); } - m_params = { 0, '"' }; + m_params = { 0, 0 }; } context().hooks().run_hook("NormalKey", key_to_str(key), context()); @@ -261,7 +261,7 @@ public: atoms.push_back({ "; param=", Face(Color::Yellow) }); atoms.push_back({ to_string(m_params.count), Face(Color::Green) }); } - if (m_params.reg != '"') + if (m_params.reg) { atoms.push_back({ "; reg=", Face(Color::Yellow) }); atoms.push_back({ StringView(m_params.reg).str(), Face(Color::Green) }); @@ -272,7 +272,7 @@ public: KeymapMode keymap_mode() const override { return KeymapMode::Normal; } private: - NormalParams m_params = { 0, '"' }; + NormalParams m_params = { 0, 0 }; bool m_hooks_disabled = false; bool m_waiting_for_reg = false; Timer m_idle_timer; -- cgit v1.2.3