Commit cc6e650e authored by Juri Linkov's avatar Juri Linkov
Browse files

(shell-filter-ctrl-a-ctrl-b): Check if `comint-last-output-start' is

a marker by using `markerp' and check if it has a position by using
`marker-position', and use this position for `goto-char'.
parent 607acb94
......@@ -483,7 +483,9 @@ This function can be put on `comint-output-filter-functions'.
The argument STRING is ignored."
(let ((pmark (process-mark (get-buffer-process (current-buffer)))))
(goto-char (or comint-last-output-start (point-min)))
(goto-char (or (and (markerp comint-last-output-start)
(marker-position comint-last-output-start))
(while (re-search-forward "[\C-a\C-b]" pmark t)
(replace-match "")))))
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