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 | 9291e76e2b783fb7b4c91c02dcf596e23221f65c (patch) | |
| tree | 45be1f0360ac49cf453c34435a5f900cb4456a24 /elisp | |
| parent | cbdb8c928957c140f9a3c4154db21df9c4341613 (diff) | |
| download | geiser-9291e76e2b783fb7b4c91c02dcf596e23221f65c.tar.gz geiser-9291e76e2b783fb7b4c91c02dcf596e23221f65c.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))) | 
