patch 9.1.1461: tabpanel: tabpanel vanishes with popup menu
Problem: tabpanel: tabpanel vanishes with popup menu
Solution: remove pum-related test in tabpanel_leftcol(), refactor a few
related functions (Hirohito Higashi)
This commit does the following:
- Delete unnecessary pum-related checks in the tabpanel_leftcol()
function
- remove pum-related check in tabpanel_leftcol()
- The argument of the TPL_LCOL() macro has been deleted.
- The argument of the tabpanel_leftcol() function has been changed
to void
- The return type of the `win_comp_pos()` function has been changed to
void
closes: #17549
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/vim.h b/src/vim.h
index 58ebad3..88caf0b 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -921,10 +921,10 @@
#if defined(FEAT_TABPANEL)
# define COLUMNS_WITHOUT_TPL() (Columns - tabpanel_width())
-# define TPL_LCOL(W) tabpanel_leftcol(W)
+# define TPL_LCOL() tabpanel_leftcol()
#else
# define COLUMNS_WITHOUT_TPL() Columns
-# define TPL_LCOL(W) 0
+# define TPL_LCOL() 0
#endif
#define W_ENDCOL(wp) ((wp)->w_wincol + (wp)->w_width)