summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-11-01 17:54:06 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2024-11-01 17:54:56 +0100
commit2b81c26dd7e84850118775e0a6cefd585c799acd (patch)
treeee3d303dbd5d92126d55ba29d57d8bcae18d8b19
parent1ad03366934293204befef18fa6706e61dbf6d93 (diff)
Fix corfu--popup-show: curr can be nil
-rw-r--r--corfu.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/corfu.el b/corfu.el
index 295e304..acc5e5a 100644
--- a/corfu.el
+++ b/corfu.el
@@ -1052,9 +1052,9 @@ A scroll bar is displayed from LO to LO+BAR."
(let ((str (concat
marginl line
(or (and lo (<= lo row (+ lo bar)) sbar)
- (and (= row curr) cbar))
+ (and (eq row curr) cbar))
"\n")))
- (when (= row curr)
+ (when (eq row curr)
(add-face-text-property
0 (length str) 'corfu-current 'append str))
(cl-incf row)