(comint-insert-input): Set point first.

This commit is contained in:
Nick Roberts
2008-01-10 11:28:33 +00:00
parent dae8c7842c
commit d1497e8d4d

View File

@@ -820,6 +820,7 @@ buffer. The hook `comint-exec-hook' is run after each exec."
If there is no previous input at point, run the command specified
by the global keymap (usually `mouse-yank-at-point')."
(interactive "e")
(mouse-set-point event)
(let ((pos (posn-point (event-end event)))
field input)
(with-selected-window (posn-window (event-end event))