From 77308932f288a5d261a012d1e50555b8aa4c0f68 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 22 Dec 1999 20:33:07 +0000 Subject: [PATCH] In M-x inferior-repl-flush-output, don't skip forward over newline at end of input expression if end marker is at line start. --- v7/src/edwin/intmod.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v7/src/edwin/intmod.scm b/v7/src/edwin/intmod.scm index 856813021..026ad5d45 100644 --- a/v7/src/edwin/intmod.scm +++ b/v7/src/edwin/intmod.scm @@ -1,6 +1,6 @@ ;;; -*-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 ;;; @@ -625,7 +625,8 @@ If this is an error, the debugger examines the error condition." (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)))) -- 2.25.1