1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-30 03:40:34 +02:00

Readline history preserves newlines

* guile-readline/ice-9/readline.scm (make-readline-port): Preserve
  newlines.  This preserves the semantics of history entries that
  contain until-end-of-line comments using `;'.
This commit is contained in:
Andy Wingo 2014-04-14 16:12:14 +02:00
parent 0ece4850c5
commit b27ad2f394

View file

@ -1,6 +1,6 @@
;;;; readline.scm --- support functions for command-line editing ;;;; readline.scm --- support functions for command-line editing
;;;; ;;;;
;;;; Copyright (C) 1997, 1999, 2000, 2001, 2002, 2006, 2009, 2010, 2011 Free Software Foundation, Inc. ;;;; Copyright (C) 1997, 1999, 2000, 2001, 2002, 2006, 2009, 2010, 2011, 2014 Free Software Foundation, Inc.
;;;; ;;;;
;;;; This program is free software; you can redistribute it and/or modify ;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by ;;;; it under the terms of the GNU General Public License as published by
@ -105,7 +105,7 @@
(set! history-buffer (set! history-buffer
(if history-buffer (if history-buffer
(string-append history-buffer (string-append history-buffer
" " "\n"
str) str)
str))) str)))
str))))) str)))))