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.
This commit is contained in:
Benno Schulenberg 2024-04-07 11:19:06 +02:00
parent 2c8d57fbb2
commit 4ae8082552

View File

@ -872,9 +872,9 @@ bool scoop_stdin(void)
/* Set up a signal handler so that ^C will stop the reading. */ /* Set up a signal handler so that ^C will stop the reading. */
install_handler_for_Ctrl_C(); install_handler_for_Ctrl_C();
/* Read the input into a new buffer. */ /* Read the input into a new buffer, undoably. */
make_new_buffer(); make_new_buffer();
read_file(stream, 0, "stdin", TRUE); read_file(stream, 0, "stdin", FALSE);
#ifdef ENABLE_COLOR #ifdef ENABLE_COLOR
find_and_prime_applicable_syntax(); find_and_prime_applicable_syntax();
#endif #endif