From: Taylor R. Campbell Date: Sat, 13 Sep 2008 09:48:15 +0000 (+0000) Subject: Fix WRITE-CHAR operation in restart interface port type so that it X-Git-Tag: 20090517-FFI~154 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=bf8f0510cd9b3af1299ef8871af5c0d5bb6c85cb;p=mit-scheme.git Fix WRITE-CHAR operation in restart interface port type so that it returns the number of characters written. --- diff --git a/v7/src/edwin/debug.scm b/v7/src/edwin/debug.scm index f73df3f98..fcea0dc8d 100644 --- a/v7/src/edwin/debug.scm +++ b/v7/src/edwin/debug.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: debug.scm,v 1.73 2008/01/30 20:02:00 cph Exp $ +$Id: debug.scm,v 1.74 2008/09/13 09:48:15 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -485,7 +485,8 @@ USA. `((WRITE-CHAR ,(lambda (port char) (guarantee-8-bit-char char) - (region-insert-char! (port/state port) char))) + (region-insert-char! (port/state port) char) + 1)) (PROMPT-FOR-CONFIRMATION ,(lambda (port prompt) port (prompt-for-confirmation? prompt))) (PROMPT-FOR-EXPRESSION