end of input expression if end marker is at line start.
;;; -*-Scheme-*-
;;;
-;;; $Id: intmod.scm,v 1.107 1999/12/20 23:18:28 cph Exp $
+;;; $Id: intmod.scm,v 1.108 1999/12/22 20:33:07 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-1999 Massachusetts Institute of Technology
;;;
(lambda ()
(let ((start
(let ((start (ref-variable comint-last-input-end)))
- (if (eqv? #\newline (extract-right-char start))
+ (if (and (not (line-start? start))
+ (eqv? #\newline (extract-right-char start)))
(mark1+ start)
start)))
(end (port/mark (buffer-interface-port (selected-buffer) #t))))