branch: master
commit c210bf684bc6e8e035eccef609b126f485c2267f
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-tmm): Fix tmm free variable
Fixes #356
---
counsel.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/counsel.el b/counsel.el
index 87ae973..4a6e68f 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1257,11 +1257,13 @@ INITIAL-INPUT can be given as the initial minibuffer
input."
(setq last-command-event chosen-string)
(call-interactively choice)))))
+(defvar tmm-table-undef)
(defun counsel-tmm ()
"Text-mode emulation of looking and choosing from a menubar."
(interactive)
(require 'tmm)
(run-hooks 'menu-bar-update-hook)
+ (setq tmm-table-undef nil)
(counsel-tmm-prompt (tmm-get-keybind [menu-bar])))
(defcustom counsel-yank-pop-truncate nil