From a84bb2cfb52bd33e185b3bb37a99f85241c2ae84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Wed, 31 Mar 2021 16:56:40 -0400 Subject: [PATCH] Fix glitch in showbuf window with odd-numbered width --- src/uifc/uifc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index 8500443919..6e0ffa2fce 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -2798,7 +2798,7 @@ void showbuf(int mode, int left, int top, int width, int height, char *title, ch tmp_buffer2[k].ch='u'; k++; tmp_buffer2[k].ch='e'; k+=2; tmp_buffer2[k].ch=api->chars->help_hitanykey_right; k++; - for(j=k;j<k+(((width-4)/2-12));j++) + for(j=k;j<k+(((width-4)/2-12))+(width&1);j++) tmp_buffer2[j].ch=api->chars->help_bottom; } else { -- GitLab