commit 4ae808255227b59576f07ae46880db07204234a7
parent 2c8d57fbb2c6ad76044bbdd959b1224cab28c00c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 7 Apr 2024 11:19:06 +0200
files: do not allow M-U to remove text read from standard input
This fixes https://savannah.gnu.org/bugs/?65565.
Problem existed since version 2.1.8, commit 25d459aa,
since reading from standard input was introduced.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -872,9 +872,9 @@ bool scoop_stdin(void)
/* Set up a signal handler so that ^C will stop the reading. */
install_handler_for_Ctrl_C();
- /* Read the input into a new buffer. */
+ /* Read the input into a new buffer, undoably. */
make_new_buffer();
- read_file(stream, 0, "stdin", TRUE);
+ read_file(stream, 0, "stdin", FALSE);
#ifdef ENABLE_COLOR
find_and_prime_applicable_syntax();
#endif