diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-14 17:59:24 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-15 12:56:56 +0100 |
| commit | 1c56750f7b6796e850a9299358dc6a187c6278bf (patch) | |
| tree | 3fe936e9b95966402dd05c29813a51f91175438b /vis-core.h | |
| parent | e29a0da9deef521694247421e82448c0a9ab3d73 (diff) | |
| download | vis-1c56750f7b6796e850a9299358dc6a187c6278bf.tar.gz vis-1c56750f7b6796e850a9299358dc6a187c6278bf.tar.xz | |
vis: generalize special stdin handling
In preparation to move argument parsing code out of vis.c.
Diffstat (limited to 'vis-core.h')
| -rw-r--r-- | vis-core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -110,7 +110,7 @@ struct File { /* shared state among windows displaying the same file */ Text *text; /* data structure holding the file content */ const char *name; /* file name used when loading/saving */ volatile sig_atomic_t truncated; /* whether the underlying memory mapped region became invalid (SIGBUS) */ - bool is_stdin; /* whether file content was read from stdin */ + int fd; /* output file descriptor associated with this file or -1 if loaded by file name */ bool internal; /* whether it is an internal file (e.g. used for the prompt) */ struct stat stat; /* filesystem information when loaded/saved, used to detect changes outside the editor */ int refcount; /* how many windows are displaying this file? (always >= 1) */ |
