summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-08-19 13:41:16 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-08-19 13:41:16 +0100
commitbaf0203b9dde15a604b21c4e8438c64b46a5fbfb (patch)
tree0ae5c5ccb9fcc14d1997bba56fbc515547de0733 /src/input_handler.cc
parent3f493fa186305fb59877e7b560a0cbce78cff3aa (diff)
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.
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc6
1 files changed, 3 insertions, 3 deletions
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;