diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2023-02-27 16:31:05 +0100 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2023-02-27 19:50:59 +0100 |
| commit | ce597235a26839826de88ecd8b949ec54c310fbd (patch) | |
| tree | 145d03f0f47afef4fa7df2c6d1976de9c97049c3 /runtime | |
| parent | 7f424e2b65779c59fc0cac3cc7508ba2ec07f200 (diff) | |
| download | rneovim-ce597235a26839826de88ecd8b949ec54c310fbd.tar.gz rneovim-ce597235a26839826de88ecd8b949ec54c310fbd.tar.bz2 rneovim-ce597235a26839826de88ecd8b949ec54c310fbd.zip | |
feat(ui): restore has('gui_running')
Problem:
has('gui_running') is still common in the wild and our answer has
changed over time, causing frustration.
https://github.com/vimpostor/vim-tpipeline/commit/95a6ccbe9f33bc42dd4cee45731d8bc3fbcd92d1
Solution:
Use stdin_tty/stdout_tty to decide if a UI is (not) a GUI.
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/doc/news.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 4c9cbf9189..90e17d3678 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -181,6 +181,9 @@ The following new APIs or features were added. • |nvim_list_uis()| reports all |ui-option| fields. +• Vim's `has('gui_running')` is now supported as a way for plugins to check if + a GUI (not the |TUI|) is attached to Nvim. |has()| + ============================================================================== CHANGED FEATURES *news-changes* |