From 5a32dc6fbadfc5a5e7bbdeedb28d843fbd1f8c7b Mon Sep 17 00:00:00 2001 From: James Nguyen Date: Sun, 3 Dec 2017 01:46:37 -0800 Subject: [PATCH] GGTags: Add bounds check --- evil-ggtags.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evil-ggtags.el b/evil-ggtags.el index 182f259..330ae5b 100644 --- a/evil-ggtags.el +++ b/evil-ggtags.el @@ -44,7 +44,8 @@ ;; `ggtags-navigation-mode' is global and will conflict with other bindings. ;; https://github.com/leoliu/ggtags/issues/124 - (setq ggtags-enable-navigation-keys nil) + (when (boundp 'ggtags-enable-navigation-keys) + (setq ggtags-enable-navigation-keys nil)) (evil-define-key 'normal ggtags-mode-map "gd" 'ggtags-find-tag-dwim