diff options
author | Raphael <glephunter@gmail.com> | 2022-11-06 18:59:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 11:59:43 +0100 |
commit | 1af4bd04f9ad157edbfea30642250e854c5cb5d2 (patch) | |
tree | 96d28408eec2ad387965065f771427179c2b7f8c /src/nvim/window.c | |
parent | a79d28e4d7939c13f38cf4ce63ff240011bca96d (diff) | |
download | rneovim-1af4bd04f9ad157edbfea30642250e854c5cb5d2.tar.gz rneovim-1af4bd04f9ad157edbfea30642250e854c5cb5d2.tar.bz2 rneovim-1af4bd04f9ad157edbfea30642250e854c5cb5d2.zip |
feat(ui): add support to display a title in the border of a float (#20184)
add "title" and "title_pos" keys to win config dict.
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index 10b366ce23..1cde433b0a 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -4,6 +4,7 @@ #include <assert.h> #include <inttypes.h> #include <stdbool.h> +#include <string.h> #include "nvim/api/private/helpers.h" #include "nvim/api/vim.h" @@ -5066,6 +5067,9 @@ static void win_free(win_T *wp, tabpage_T *tp) } } + // free the border title text + clear_virttext(&wp->w_float_config.title_chunks); + clear_matches(wp); free_jumplist(wp); |