branch: externals/idlwave
commit 7c3028ae8fdc75621369c318b1b5a32219294499
Author: JD Smith <jdtsm...@gmail.com>
Commit: JD Smith <jdtsm...@gmail.com>

    Fix structtag completion help reliance on idlw-shell.
---
 idlw-complete-structtag.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/idlw-complete-structtag.el b/idlw-complete-structtag.el
index fb3600177b..cb763c8367 100644
--- a/idlw-complete-structtag.el
+++ b/idlw-complete-structtag.el
@@ -229,8 +229,9 @@ an up-to-date completion list."
   (cond
    ((eq mode 'test)
     ;; fontify only in source buffers, not in the shell.
-    (not (equal idlwave-current-tags-buffer
-                (get-buffer (idlwave-shell-buffer)))))
+    (or (not (fboundp 'idlwave-shell-buffer))
+       (not (equal idlwave-current-tags-buffer
+                   (get-buffer (idlwave-shell-buffer))))))
    ((eq mode 'set)
     (setq kwd word
          idlwave-help-do-struct-tag idlwave-structtag-struct-location))

Reply via email to