Skip to content

Commit

Permalink
files: do not allow M-U to remove text read from standard input
Browse files Browse the repository at this point in the history
This fixes https://savannah.gnu.org/bugs/?65565.

Problem existed since version 2.1.8, commit 25d459a,
since reading from standard input was introduced.
  • Loading branch information
Benno Schulenberg committed Apr 7, 2024
1 parent 2c8d57f commit 4ae8082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nano.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ae8082

Please sign in to comment.