summaryrefslogtreecommitdiff
path: root/src/normal.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-11-28 13:58:36 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-11-28 13:58:36 +0000
commit77e2e8a31e9a86dfb1cadf941b510c61014bd0ee (patch)
tree8faededdd2234691a5f5fdc4bc948290a6e96a48 /src/normal.hh
parent75fe9a76db4bf2670efe3007b2dbc8c3cc9dc47e (diff)
Support selecting yank/paste register with "
Diffstat (limited to 'src/normal.hh')
-rw-r--r--src/normal.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/normal.hh b/src/normal.hh
index afd8840c..45057c48 100644
--- a/src/normal.hh
+++ b/src/normal.hh
@@ -11,10 +11,16 @@ namespace Kakoune
class Context;
+struct NormalParams
+{
+ int count;
+ char reg;
+};
+
struct NormalCmdDesc
{
const char* docstring;
- std::function<void (Context& context, int param)> func;
+ std::function<void (Context& context, NormalParams params)> func;
};
using KeyMap = std::unordered_map<Key, NormalCmdDesc>;