diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-17 12:44:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-17 12:44:31 +0800 |
commit | bccb5de89da452d9136b3c813be584f15d3018ba (patch) | |
tree | 60af9ec40f00e90715f7bd2bed1b9534cac7ca47 | |
parent | 5c1eb02b05cd2e8cac330c85a2492846b2e4990d (diff) | |
download | rneovim-bccb5de89da452d9136b3c813be584f15d3018ba.tar.gz rneovim-bccb5de89da452d9136b3c813be584f15d3018ba.tar.bz2 rneovim-bccb5de89da452d9136b3c813be584f15d3018ba.zip |
vim-patch:8.2.3699: the +title feature adds a lot of #ifdef but little code (#19809)
Problem: The +title feature adds a lot of #ifdef but little code.
Solution: Graduate the +title feature.
https://github.com/vim/vim/commit/651fca85c71a4c5807f8f828f9ded30fbd754325
-rw-r--r-- | src/nvim/mbyte.c | 5 | ||||
-rw-r--r-- | src/nvim/screen.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index b777d3933f..5d41795913 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1006,8 +1006,9 @@ int utf_char2len(const int c) /// Convert Unicode character to UTF-8 string /// -/// @param c character to convert to \p buf -/// @param[out] buf UTF-8 string generated from \p c, does not add \0 +/// @param c character to convert to UTF-8 string in \p buf +/// @param[out] buf UTF-8 string generated from \p c, does not add \0 +/// must have room for at least 6 bytes /// @return Number of bytes (1-6). int utf_char2bytes(const int c, char *const buf) { diff --git a/src/nvim/screen.c b/src/nvim/screen.c index e3b7fff1c4..5ffeb9425e 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -6400,6 +6400,7 @@ void showruler(bool always) || (p_title && (stl_syntax & STL_IN_TITLE))) { maketitle(); } + // Redraw the tab pages line if needed. if (redraw_tabline) { draw_tabline(); @@ -6714,6 +6715,7 @@ void screen_resize(int width, int height) if (starting != NO_SCREEN) { maketitle(); + changed_line_abv_curs(); invalidate_botline(); |