[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gtags-mode 816093f0ec 2/3: Fix completion attempt when
From: |
ELPA Syncer |
Subject: |
[elpa] externals/gtags-mode 816093f0ec 2/3: Fix completion attempt when prefix is ---- |
Date: |
Thu, 8 Aug 2024 12:58:20 -0400 (EDT) |
branch: externals/gtags-mode
commit 816093f0ec81ec46aa93faffd5717a32ba77c883
Author: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Fix completion attempt when prefix is ----
---
gtags-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gtags-mode.el b/gtags-mode.el
index 0159e3fee9..e468c4216c 100644
--- a/gtags-mode.el
+++ b/gtags-mode.el
@@ -257,7 +257,8 @@ completions usually from the cache when possible."
(cond ;; TODO: use with-memoization in the future it will be on emacs 29.1
((not (gtags-mode--local-plist default-directory))
(error "Calling `gtags-mode--list-completions' with no gtags-mode--plist"))
- ((and (stringp prefix) (not (string-blank-p prefix))
+ ((and (stringp prefix)
+ (not (string-match-p "\\`[ \t\n\r-]*\\'" prefix)) ;; not match empty
or only -
(gtags-mode--exec-sync "--ignore-case" "--completion" prefix)))
((plist-get gtags-mode--plist :cache))
(t (plist-put gtags-mode--plist :cache (gtags-mode--exec-sync
"--completion"))