mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
refactor(ui): simplify stdin handling
This commit is contained in:
@@ -507,6 +507,9 @@ EXTERN int v_dying INIT(= 0);
|
||||
EXTERN int stdin_isatty INIT(= true);
|
||||
// is stdout a terminal?
|
||||
EXTERN int stdout_isatty INIT(= true);
|
||||
/// filedesc set by embedder for reading first buffer like `cmd | nvim -`
|
||||
EXTERN int stdin_fd INIT(= -1);
|
||||
|
||||
// true when doing full-screen output, otherwise only writing some messages.
|
||||
// volatile because it is used in a signal handler.
|
||||
EXTERN volatile int full_screen INIT(= false);
|
||||
@@ -704,7 +707,6 @@ EXTERN int RedrawingDisabled INIT(= 0);
|
||||
|
||||
EXTERN int readonlymode INIT(= false); // Set to true for "view"
|
||||
EXTERN int recoverymode INIT(= false); // Set to true for "-r" option
|
||||
EXTERN int stdin_filedesc INIT(= -1); // stdin filedesc set by embedder
|
||||
|
||||
// typeahead buffer
|
||||
EXTERN typebuf_T typebuf INIT(= { NULL, NULL, 0, 0, 0, 0, 0, 0, 0 });
|
||||
@@ -848,10 +850,6 @@ EXTERN linenr_T printer_page_num;
|
||||
EXTERN bool typebuf_was_filled INIT(= false); // received text from client
|
||||
// or from feedkeys()
|
||||
|
||||
EXTERN bool implicit_readstdin INIT(= false); // Used in embed job created
|
||||
// by TUI process only in
|
||||
// builtin tui
|
||||
|
||||
#ifdef BACKSLASH_IN_FILENAME
|
||||
EXTERN char psepc INIT(= '\\'); // normal path separator character
|
||||
EXTERN char psepcN INIT(= '/'); // abnormal path separator character
|
||||
|
Reference in New Issue
Block a user