summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2014-11-20 00:02:48 +0100
committerDaniel Carl <danielcarl@gmx.de>2014-11-20 00:14:46 +0100
commite5d8b2bbe0688523dbe20e4f6519674daea1183f (patch)
treed8a2781a9047bd14351c4c99b1a5b6c2a061223e /src/normal.c
parent6accaba7879a3038b08f972fabdabd0cd7fe469f (diff)
Allow select of yank buffer for ;y hinting (#151).
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 9d78f63..2e9d507 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -438,6 +438,12 @@ static VbResult normal_hint(const NormalCmdInfo *info)
{
const char prompt[3] = {info->key, info->key2, 0};
+ /* Save the current cutbuf char to make it available in case of ;y
+ * hinting. This is only a hack, because we don't need this state variable
+ * somewhere else - it's only use is for hinting. It might be better to
+ * allow to set various data to the mode itself to avoid toggling
+ * variables in global skope. */
+ vb.state.current_register = info->cutbuf;
return normal_do_hint(prompt);
}