aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-02-27 16:31:05 +0100
committerJustin M. Keyes <justinkz@gmail.com>2023-02-27 19:50:59 +0100
commitce597235a26839826de88ecd8b949ec54c310fbd (patch)
tree145d03f0f47afef4fa7df2c6d1976de9c97049c3 /src/nvim/api/ui.c
parent7f424e2b65779c59fc0cac3cc7508ba2ec07f200 (diff)
downloadrneovim-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 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
index 00fd2781ff..a8f5d2e070 100644
--- a/src/nvim/api/ui.c
+++ b/src/nvim/api/ui.c
@@ -352,7 +352,6 @@ static void ui_set_option(UI *ui, bool init, String name, Object value, Error *e
});
stdin_fd = (int)value.data.integer;
- ui->stdin_fd = (int)value.data.integer;
return;
}