diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-04-22 20:56:31 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-05-02 22:19:41 +0200 |
commit | ad63b94b03c166f37bda477db6cbac2a9583d586 (patch) | |
tree | 49ee0ca3d359e52630d7e30e5dbb5a53275640b1 /src/nvim/globals.h | |
parent | 619c8f4b9143e4dea0fb967ccdce594e14956ed3 (diff) | |
download | rneovim-ad63b94b03c166f37bda477db6cbac2a9583d586.tar.gz rneovim-ad63b94b03c166f37bda477db6cbac2a9583d586.tar.bz2 rneovim-ad63b94b03c166f37bda477db6cbac2a9583d586.zip |
refactor(ui): simplify stdin handling
Diffstat (limited to 'src/nvim/globals.h')
-rw-r--r-- | src/nvim/globals.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 8d03bdf000..3ae0d32d8f 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -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 |