Skip to content

Commit

Permalink
Don't clear history on ignored commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzermann17 committed Jun 14, 2015
1 parent 8f3cc94 commit 713eb31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion command-log-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
(add-hook 'post-self-insert-hook 'clm/recent-history)

(defun clm/zap-recent-history ()
(unless (eq this-original-command #'self-insert-command)
(unless (or (member this-original-command
clm/log-command-exceptions*)
(eq this-original-command #'self-insert-command))
(setq clm/recent-history-string "")))

(add-hook 'post-command-hook 'clm/zap-recent-history)
Expand Down

0 comments on commit 713eb31

Please sign in to comment.