diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-04-20 14:50:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-20 14:50:04 +0200 |
| commit | 81f1e33d15def4fe55255503a7806dfd1078bd41 (patch) | |
| tree | c19dbbf83b8959cf37a85a0d2a2ca112e2afd06d /src/nvim/tui | |
| parent | a391cd517bb4f0d638da3f0aaaf57f98e153447e (diff) | |
| parent | 8973768a4e317ceccb12442ba40b5456d3f239cb (diff) | |
| download | rneovim-81f1e33d15def4fe55255503a7806dfd1078bd41.tar.gz rneovim-81f1e33d15def4fe55255503a7806dfd1078bd41.tar.bz2 rneovim-81f1e33d15def4fe55255503a7806dfd1078bd41.zip | |
Merge pull request #18145 from bfredl/term_opt
feat(api): allow remote UI to set terminal options
Diffstat (limited to 'src/nvim/tui')
| -rw-r--r-- | src/nvim/tui/input.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/nvim/tui/input.c b/src/nvim/tui/input.c index 17656c5ddc..691b2ea9da 100644 --- a/src/nvim/tui/input.c +++ b/src/nvim/tui/input.c @@ -442,18 +442,7 @@ static HandleState handle_bracketed_paste(TermInput *input) static void set_bg_deferred(void **argv) { char *bgvalue = argv[0]; - if (!option_was_set("bg") && !strequal((char *)p_bg, bgvalue)) { - // Value differs, apply it. - if (starting) { - // Wait until after startup, so OptionSet is triggered. - do_cmdline_cmd((bgvalue[0] == 'l') - ? "autocmd VimEnter * ++once ++nested set bg=light" - : "autocmd VimEnter * ++once ++nested set bg=dark"); - } else { - set_option_value("bg", 0L, bgvalue, 0); - reset_option_was_set("bg"); - } - } + set_tty_background(bgvalue); } // During startup, tui.c requests the background color (see `ext.get_bg`). |