mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-25 14:20:46 +03:00
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:
parent
2c8d57fbb2
commit
4ae8082552
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user