(iswitchb-complete): Use minibuffer-prompt-end
authorGerd Moellmann <gerd@gnu.org>
Thu, 23 Sep 1999 11:58:34 +0000 (11:58 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 23 Sep 1999 11:58:34 +0000 (11:58 +0000)
instead of point-min in call to delete-region.

lisp/iswitchb.el

index d20f4f0..f2d5fc4 100644 (file)
@@ -568,7 +568,7 @@ The result is stored in `iswitchb-common-match-string'."
               ;; found something to complete, so put it in the minibuffer.
               (progn
                 (setq iswitchb-rescan nil)
-                (delete-region (point-min) (point))
+                (delete-region (minibuffer-prompt-end) (point))
                 (insert  res))
             ;; else nothing to complete
             (iswitchb-completion-help)