mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2110: cannot use ":shell" when reading from stdin
Problem: Cannot use ":shell" when reading from stdin. (Gary Johnson) Solution: Revert patch 8.2.1833.
This commit is contained in:
@@ -2709,7 +2709,6 @@ read_stdin(void)
|
|||||||
set_buflisted(TRUE);
|
set_buflisted(TRUE);
|
||||||
|
|
||||||
// Create memfile and read from stdin.
|
// Create memfile and read from stdin.
|
||||||
// This will also dup stdin from stderr to read commands from.
|
|
||||||
(void)open_buffer(TRUE, NULL, 0);
|
(void)open_buffer(TRUE, NULL, 0);
|
||||||
|
|
||||||
no_wait_return = FALSE;
|
no_wait_return = FALSE;
|
||||||
@@ -2717,6 +2716,14 @@ read_stdin(void)
|
|||||||
TIME_MSG("reading stdin");
|
TIME_MSG("reading stdin");
|
||||||
|
|
||||||
check_swap_exists_action();
|
check_swap_exists_action();
|
||||||
|
|
||||||
|
#if !(defined(AMIGA) || defined(MACOS_X))
|
||||||
|
// Dup stdin from stderr to read commands from, so that shell commands
|
||||||
|
// work.
|
||||||
|
// TODO: why is this needed, even though readfile() has done this?
|
||||||
|
close(0);
|
||||||
|
vim_ignored = dup(2);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2110,
|
||||||
/**/
|
/**/
|
||||||
2109,
|
2109,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user