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.
651fca85c7
This commit is contained in:
zeertzjq 2022-08-17 12:44:31 +08:00 committed by GitHub
parent 5c1eb02b05
commit bccb5de89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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)
{

View File

@ -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();