Fix ein:cell-finish-tooltip fallback

When none of pos-tip or popup-tip installed, raw ansi string was shown
in the echo area.  This fixes the problem.
This commit is contained in:
Takafumi Arakaki 2012-05-19 16:31:16 +02:00
parent ab68e63b94
commit 5180a3cafc

View file

@ -412,7 +412,8 @@ A specific node can be specified using optional ARGS."
(funcall 'pos-tip-show tooltip))
((fboundp 'popup-tip)
(funcall 'popup-tip tooltip))
(t (message "%s" defstring)))))
(t (when (stringp defstring)
(message (ein:trim (ansi-color-apply defstring))))))))
(defun ein:cell-goto (cell)
(ewoc-goto-node (oref cell :ewoc) (ein:cell-element-get cell :input))