From 5b455a8aa03e2091ebfb2b9d762c930f3e00f17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hoffmann?= Date: Tue, 16 Jun 2026 21:07:37 +0200 Subject: [PATCH] feat(statusline): remove arbitrary item group minwid limit - with today's screens, the arbitrary 50 cells limit is no longer as ample as a few decades ago - minwid is effectively constrained by the output buffer size anyway, so accidentally setting huge numbers introduces no noticeable lag - restores some backwards compatibility to ui2 for the edge-case where the ruler width was set to a number > 50 with the item group syntax --- src/nvim/statusline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nvim/statusline.c b/src/nvim/statusline.c index 93baf16afd..21cd747181 100644 --- a/src/nvim/statusline.c +++ b/src/nvim/statusline.c @@ -1467,9 +1467,8 @@ int build_stl_str_hl(win_T *wp, char *out, size_t outlen, char *fmt, OptIndex op } } - // Bound the minimum width at 50. // Make the number negative to denote left alignment of the item - minwid = (minwid > 50 ? 50 : minwid) * (left_align ? -1 : 1); + minwid *= left_align ? -1 : 1; // Denotes the start of a new group if (*fmt_p == '(') {