input: rename input_{start,stop}_stdin()

- "stdin" is misleading because it may read from stdout or stderr
- also remove some unused includes
This commit is contained in:
Justin M. Keyes
2015-05-25 14:31:12 -04:00
parent 4219b69145
commit b2c400b3f2
3 changed files with 6 additions and 8 deletions

View File

@@ -279,7 +279,7 @@ int main(int argc, char **argv)
// read the "-" file (eg: cat file | nvim -)
fd = params.err_isatty ? fileno(stderr) : fileno(stdout);
}
input_start_stdin(fd);
input_start(fd);
}
// open terminals when opening files that start with term://
@@ -386,8 +386,8 @@ int main(int argc, char **argv)
}
if (!params.headless) {
// Stop reading from stdin, the UI layer will take over now
input_stop_stdin();
// Stop reading from input stream, the UI layer will take over now.
input_stop();
ui_builtin_start();
}