diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2017-09-23 11:20:38 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2017-09-25 17:57:47 -0500 |
commit | 3ea68948c6c4f03504d8232c3b8105e77e0ee483 (patch) | |
tree | 03b02681ede101a06a80cd0fa4edffdd5a0142d5 /elisp | |
parent | 7c517cbc454a14670e6089c9570c1472ba3d3b8e (diff) | |
download | geiser-guile-3ea68948c6c4f03504d8232c3b8105e77e0ee483.tar.gz geiser-guile-3ea68948c6c4f03504d8232c3b8105e77e0ee483.tar.bz2 |
Do not set geiser last-prompt-end beyond of point-max
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-repl.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el index 8720a68..ab101e0 100644 --- a/elisp/geiser-repl.el +++ b/elisp/geiser-repl.el @@ -303,7 +303,9 @@ module command as a string") (marker-position (cdr comint-last-prompt))) ((and (boundp 'comint-last-prompt-overlay) comint-last-prompt-overlay) (overlay-end comint-last-prompt-overlay)) - (t (save-excursion (geiser-repl--bol) (+ 1 (point)))))) + (t (save-excursion + (geiser-repl--bol) + (min (+ 1 (point)) (point-max)))))) (defun geiser-repl--last-prompt-start () (cond ((and (boundp 'comint-last-prompt) (markerp (car comint-last-prompt))) |