1999-12-28 Gerd Moellmann <gerd@gnu.org>
+ * icomplete.el (icomplete-exhibit): Adapt to prompt in buffer.
+
* progmodes/cc-cmds.el (c-fill-paragraph): Don't delete white
space in front of a C-style comment end.
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))