Mercurial > emacs
diff lisp/complete.el @ 100116:f2e50678d85a
(PC-do-completion): Fix leftover bug from Emacs-21 when
the prompt was added to the minibuffer.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 02 Dec 2008 07:08:35 +0000 |
parents | 172ab771edf9 |
children | a9dc0e7c3f2b |
line wrap: on
line diff
--- a/lisp/complete.el Tue Dec 02 03:40:15 2008 +0000 +++ b/lisp/complete.el Tue Dec 02 07:08:35 2008 +0000 @@ -799,7 +799,8 @@ (if improved ;; We changed it... would it be complete without the space? - (if (test-completion (buffer-substring 1 (1- end)) + (if (test-completion (buffer-substring + (field-beginning) (1- end)) table pred) (delete-region (1- end) end)))