Commit 53811b42 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(iswitchb-complete): Use minibuffer-prompt-end

instead of point-min in call to delete-region.
parent d76a596e
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment