patch 9.1.1391: Vim does not have a vertical tabpanel
Problem: Vim does not have a tabpanel
Solution: include the tabpanel feature
(Naruhiko Nishino, thinca)
closes: #17263
Co-authored-by: thinca <thinca@gmail.com>
Signed-off-by: Naruhiko Nishino <naru123456789@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/version.c b/src/version.c
index 5475e0a..88653f8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -555,6 +555,11 @@
#if defined(USE_SYSTEM) && defined(UNIX)
"+system()",
#endif
+#if defined(FEAT_TABPANEL)
+ "+tabpanel",
+#else
+ "-tabpanel",
+#endif
"+tag_binary",
"-tag_old_static",
"-tag_any_white",
@@ -4037,7 +4042,7 @@
// start displaying the message lines after half of the blank lines
row = blanklines / 2;
- if ((row >= 2 && Columns >= 50) || colon)
+ if ((row >= 2 && COLUMNS_WITHOUT_TPL() >= 50) || colon)
{
for (i = 0; i < (int)ARRAY_LENGTH(lines); ++i)
{
@@ -4120,7 +4125,7 @@
}
col += (int)STRLEN(vers);
}
- col = (Columns - col) / 2;
+ col = (COLUMNS_WITHOUT_TPL() - col) / 2;
if (col < 0)
col = 0;
@@ -4139,13 +4144,14 @@
else
clen += byte2cells(p[l]);
}
- screen_puts_len(p, l, row, col, *p == '<' ? HL_ATTR(HLF_8) : attr);
+ screen_puts_len(p, l, row, col + TPL_LCOL(NULL),
+ *p == '<' ? HL_ATTR(HLF_8) : attr);
col += clen;
}
// Add the version number to the version line.
if (add_version)
- screen_puts(vers, row, col, 0);
+ screen_puts(vers, row, col + TPL_LCOL(NULL), 0);
}
/*
@@ -4155,6 +4161,9 @@
ex_intro(exarg_T *eap UNUSED)
{
screenclear();
+#if defined(FEAT_TABPANEL)
+ draw_tabpanel();
+#endif
intro_message(TRUE);
wait_return(TRUE);
}