From 669dc1eaf7de4f713dd47e9381ff62b2d828195d Mon Sep 17 00:00:00 2001 From: cage Date: Mon, 30 Dec 2024 23:44:16 +0100 Subject: [PATCH] - fixed out of bound list accessing when fuzzy autocompleting command line input. --- src/complete-window.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/complete-window.lisp b/src/complete-window.lisp index 524241a..3c50560 100644 --- a/src/complete-window.lisp +++ b/src/complete-window.lisp @@ -94,7 +94,7 @@ +box-height-diff+) :truncate-restart-fn truncate-fn))) - (padding-size (- (length candidates) + (padding-size (- (length (flatten batches)) (length underline-char-indices))) (padding (when (> padding-size 0) (make-list padding-size :initial-element nil)))