aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-09-19 15:54:53 +0200
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-03-15 12:18:53 +0100
commit2b44d1c9a83986f33e2c7c806ff5dccd5eedeaf1 (patch)
tree81a6bc0251219186c55a1033ac105a830c739f48
parentd33ff0d50eb08423e033b0a524287914ee1f05a0 (diff)
fix: Fix symbol detection logic
-rw-r--r--nyxt.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/nyxt.el b/nyxt.el
index d9d4b6e..9615067 100644
--- a/nyxt.el
+++ b/nyxt.el
@@ -147,9 +147,9 @@ connect Slynk to it."
"Check if Nyxt extension SYSTEM exists in the ASDF source registry.
Optionally test if SYMBOL is bound."
(if symbol
- (when-let ((symbol (nyxt-sly-eval `(find-symbol ,(capitalize symbol)
+ (when-let ((symbol (nyxt-sly-eval `(find-symbol ,(upcase symbol)
,(sly-keywordify (intern system))))))
- (string-match symbol "NIL"))
+ (not (string-match "NIL" symbol)))
(when-let ((system (nyxt-sly-eval `(asdf:find-system ,system nil))))
(not (string= (downcase system) "nil")))))