diff options
| author | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-05-05 13:22:09 +0200 |
|---|---|---|
| committer | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-05-05 13:22:09 +0200 |
| commit | 78c5432ec0a7d68b2c1bfd2590b56c11605c8a4f (patch) | |
| tree | 1508f8cef2748f36f95eeae47b8365c9d245356d /evil-states.el | |
| parent | 2382aafb90aa4cefdf1a15e11f2dd7c475ed61fd (diff) | |
refine initialization of normal state in post-command
The post-command-hook is not only called after a command has been
executed but also if a event-loop is entered/left. This interfers with
executing keyboard macros (which start a new command loop).
The initialization is now guarded against entering/leaving events.
Diffstat (limited to 'evil-states.el')
| -rw-r--r-- | evil-states.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/evil-states.el b/evil-states.el index 47639a4..529632b 100644 --- a/evil-states.el +++ b/evil-states.el @@ -47,7 +47,8 @@ AKA \"Command\" state." "Reset command loop variables in Normal state. Also prevent point from reaching the end of the line. If the region is activated, enter Visual state." - (unless (evil-initializing-p) + (unless (or (evil-initializing-p) + (null this-command)) (setq command (or command this-command)) (when (evil-normal-state-p) (setq evil-this-type nil |
