diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-05-26 11:29:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 11:29:56 +0200 |
commit | a92d78d201e53a4b2fb7b2f811a3f316678a8e6a (patch) | |
tree | 05dce5452ed415b18703adc0d033d261a0a47ae1 /src | |
parent | ad62bd471da43e3efa2f9f8981e91b9af92901c0 (diff) | |
parent | 43d66c0ebbe43f40a1f76e1635ccef6181c01317 (diff) | |
download | rneovim-a92d78d201e53a4b2fb7b2f811a3f316678a8e6a.tar.gz rneovim-a92d78d201e53a4b2fb7b2f811a3f316678a8e6a.tar.bz2 rneovim-a92d78d201e53a4b2fb7b2f811a3f316678a8e6a.zip |
Merge pull request #23583 from zeertzjq/ui-attach-title
fix(ui-ext): send title to newly-attached UI
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/buffer.c | 1 | ||||
-rw-r--r-- | src/nvim/ex_docmd.c | 3 | ||||
-rw-r--r-- | src/nvim/ui.c | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 11b79fcede..dab07487cd 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3444,7 +3444,6 @@ void resettitle(void) { ui_call_set_icon(cstr_as_string(lasticon)); ui_call_set_title(cstr_as_string(lasttitle)); - ui_flush(); } #if defined(EXITFREE) diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 9666d80de2..39a54fa236 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -4875,9 +4875,6 @@ static void ex_stop(exarg_T *eap) ui_call_suspend(); ui_flush(); - maketitle(); - resettitle(); // force updating the title - ui_refresh(); // may have resized window apply_autocmds(EVENT_VIMRESUME, NULL, NULL, false, NULL); } diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 8c31032492..87a0271f3d 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -15,7 +15,7 @@ #include "nvim/api/ui.h" #include "nvim/ascii.h" #include "nvim/autocmd.h" -#include "nvim/buffer_defs.h" +#include "nvim/buffer.h" #include "nvim/cursor_shape.h" #include "nvim/drawscreen.h" #include "nvim/ex_getln.h" @@ -348,6 +348,7 @@ void ui_attach_impl(UI *ui, uint64_t chanid) uis[ui_count++] = ui; ui_refresh_options(); + resettitle(); for (UIExtension i = kUIGlobalCount; (int)i < kUIExtCount; i++) { ui_set_ext_option(ui, i, ui->ui_ext[i]); |