diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-02-23 18:29:36 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2023-02-27 19:50:59 +0100 |
commit | 7f424e2b65779c59fc0cac3cc7508ba2ec07f200 (patch) | |
tree | 60c2609c51ea9f5708c379972c38d7da32a6faa1 /src/nvim/ui.h | |
parent | f64098a2df774c79dd454f63ac491570cdcaf2b2 (diff) | |
download | rneovim-7f424e2b65779c59fc0cac3cc7508ba2ec07f200.tar.gz rneovim-7f424e2b65779c59fc0cac3cc7508ba2ec07f200.tar.bz2 rneovim-7f424e2b65779c59fc0cac3cc7508ba2ec07f200.zip |
feat(api): more fields in nvim_list_uis
Problem:
nvim_list_uis does not report all ":help ui-option" fields.
Solution:
Store ":help ui-option" fields on the `UI` object and update ui_array.
Diffstat (limited to 'src/nvim/ui.h')
-rw-r--r-- | src/nvim/ui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/ui.h b/src/nvim/ui.h index e83f93eb07..c1377f56b4 100644 --- a/src/nvim/ui.h +++ b/src/nvim/ui.h @@ -103,6 +103,14 @@ struct ui_t { double pum_height; double pum_width; + // TUI fields. + char *term_name; + char *term_background; + int term_colors; + int stdin_fd; + bool stdin_tty; + bool stdout_tty; + // TODO(bfredl): integrate into struct! UIData data[1]; }; |