diff options
-rw-r--r-- | lisp/iswitchb.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index d20f4f0e280..f2d5fc4f926 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el @@ -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) |