summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-05-06 19:31:55 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2023-05-06 19:31:55 +0200
commit0741292f0acc407a88e7e8343d57b1ef9c333f53 (patch)
tree7ec4521e8042d3669cf832852c6ae96083aa7db6
parent4226708c83095564f2380db48e7ee314c70096e8 (diff)
corfu-history: Expand docstring
-rw-r--r--extensions/corfu-history.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/extensions/corfu-history.el b/extensions/corfu-history.el
index e581bcb..c924b33 100644
--- a/extensions/corfu-history.el
+++ b/extensions/corfu-history.el
@@ -41,12 +41,14 @@
(eval-when-compile
(require 'cl-lib))
+(defvar corfu-history nil
+ "History of Corfu candidates.
+The maximum length is determined by the variable `history-length'
+or the property `history-length' of `corfu-history'.")
+
(defvar corfu-history--hash nil
"Hash table of Corfu candidates.")
-(defvar corfu-history nil
- "History of Corfu candidates.")
-
(defun corfu-history--sort-predicate (x y)
"Sorting predicate which compares X and Y."
(or (< (cdr x) (cdr y))