changeset 27023:b190fee70d54

(icomplete-exhibit): Adapt to prompt in buffer.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 28 Dec 1999 18:13:49 +0000
parents 409a1b7f4284
children 3b652889d81a
files lisp/icomplete.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/icomplete.el	Tue Dec 28 16:16:23 1999 +0000
+++ b/lisp/icomplete.el	Tue Dec 28 18:13:49 1999 +0000
@@ -246,7 +246,7 @@
 Should be run via minibuffer `post-command-hook'.  See `icomplete-mode'
 and `minibuffer-setup-hook'."
   (if (icomplete-simple-completing-p)
-      (let ((contents (buffer-substring (point-min)(point-max)))
+      (let ((contents (buffer-substring (minibuffer-prompt-end)(point-max)))
 	    (buffer-undo-list t))
 	(save-excursion
 	  (goto-char (point-max))