mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
vim-patch:8.2.1833: when reading from stdin dup() is called twice (#13498)
Problem: When reading from stdin dup() is called twice. Solution: Remove the dup() in main.c. (Ken Takata, closes vim/vim#7110)204ade6bcb
N/A patches for version.c: vim-patch:8.2.2109: "vim -" does not work well when modifyOtherKeys is enabled Problem: "vim -" does not work well when modifyOtherKeys is enabled and a shell command is executed on startup. Solution: Only change modifyOtherKeys when executing a shell command in raw mode.8a3da6a368
vim-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.8e1cbb55c3
vim-patch:8.2.2111: GTK: menu background is the same color as the main window Problem: GTK: Menu background is the same color as the main window. Solution: Fix white space around the test in another way. (closes vim/vim#7437, closes vim/vim#7427)023fd5d213
vim-patch:8.2.2113: MS-Windows GUI: crash after using ":set guifont=" four times Problem: MS-Windows GUI: crash after using ":set guifont=" four times. Solution: Check for NULL pointer. (Ken Takata, closes vim/vim#7434)1b3e0727ce
vim-patch:8.2.2116: MS-Windows GUI: test for 'guifont' is incomplete Problem: MS-Windows GUI: test for 'guifont' is incomplete. Solution: Set 'renderoptions'. (Christian Brabandt)2c78a772fd
vim-patch:8.2.2118: dead code in the job support Problem: Dead code in the job support. (Dominique Pellé) Solution: Define USE_ARGV before checking for it.f46bf5204c
vim-patch:8.2.2119: GTK3: status line background color is wrong Problem: GTK3: status line background color is wrong. Solution: Don't change the code for earlier GTK3 versions. (closes vim/vim#7444)7988a6f0e9
This commit is contained in:
@@ -1414,7 +1414,10 @@ static void read_stdin(void)
|
||||
no_wait_return = true;
|
||||
int save_msg_didany = msg_didany;
|
||||
set_buflisted(true);
|
||||
(void)open_buffer(true, NULL, 0); // create memfile and read file
|
||||
|
||||
// Create memfile and read from stdin.
|
||||
(void)open_buffer(true, NULL, 0);
|
||||
|
||||
if (BUFEMPTY() && curbuf->b_next != NULL) {
|
||||
// stdin was empty, go to buffer 2 (e.g. "echo file1 | xargs nvim"). #8561
|
||||
do_cmdline_cmd("silent! bnext");
|
||||
|
Reference in New Issue
Block a user