From c3701c7d94ec22d40a0d82bbf8e070d26b9d92f3 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 4 Mar 2014 15:33:56 +0100 Subject: [PATCH] minibuffer.el (minibuffer-completion-help): Use 0 as thefallback value for `base-size' * minibuffer.el (minibuffer-completion-help): Use 0 as the fallback value for `base-size'. (Bug#16933) --- lisp/ChangeLog | 5 +++++ lisp/minibuffer.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e361990693d..fe40615d6e0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-03-04 Bastien Guerry + + * minibuffer.el (minibuffer-completion-help): Use 0 as the + fallback value for `base-size'. (Bug#16933) + 2014-03-04 Juanma Barranquero * hexl.el (hexl-address-region, hexl-ascii-region) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 63e7e145d10..da3a8ad9df1 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -1753,7 +1753,7 @@ variables.") (if completions "Sole completion" "No completions"))) (let* ((last (last completions)) - (base-size (cdr last)) + (base-size (or (cdr last) 0)) (prefix (unless (zerop base-size) (substring string 0 base-size))) (all-md (completion--metadata (buffer-substring-no-properties start (point)) -- 2.39.2