summaryrefslogtreecommitdiff
path: root/lisp/emulation/viper.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emulation/viper.el')
-rw-r--r--lisp/emulation/viper.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index 2d65f5c4a06..a179e163933 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -897,7 +897,8 @@ It also can't undo some Viper settings."
(defadvice self-insert-command (around viper-self-insert-ad activate)
"Ignore all self-inserting keys in the vi-state."
- (if (and (eq viper-current-state 'vi-state) (interactive-p))
+ (if (and (eq viper-current-state 'vi-state)
+ (called-interactively-p 'interactive))
(beep 1)
ad-do-it
))