diff options
| author | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-05-05 13:24:20 +0200 |
|---|---|---|
| committer | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-05-05 13:24:20 +0200 |
| commit | 5924c39fe059522f6e36420385d51d5d608f8e4d (patch) | |
| tree | 4233a8e1f8e7dc548a4df9110f375302b759ed76 /evil-repeat.el | |
| parent | 78c5432ec0a7d68b2c1bfd2590b56c11605c8a4f (diff) | |
support repeating register commands (re #392)
Because choosing a register is a command on its own, the selecting has
been recorded as single command in the repeat ring. This change
inhibits this recording but modifies the subsequent command, so that
the original register is replayed.
Diffstat (limited to 'evil-repeat.el')
| -rw-r--r-- | evil-repeat.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/evil-repeat.el b/evil-repeat.el index c6f7de4..0af5b57 100644 --- a/evil-repeat.el +++ b/evil-repeat.el @@ -325,6 +325,9 @@ invoked the current command" "Repeation recording function for commands that are repeated by keystrokes." (cond ((eq flag 'pre) + (when evil-this-register + (evil-repeat-record + `(set evil-this-register ,evil-this-register))) (setq evil-repeat-keys (this-command-keys))) ((eq flag 'post) (evil-repeat-record (if (zerop (length (this-command-keys))) |
