From 3335a9c2a09e5fe3230d7d7a4030f63c4b3f6dad Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Sat, 9 Aug 2008 08:58:47 -0400 Subject: [PATCH] Fix some more windowlist glitches * Do not clear the window when hitting enter in an empty group * Do not clear the window when selecting the active window from the windowlist. References #23856. --- src/help.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/help.c b/src/help.c index 394b1c5..265bc4a 100644 --- a/src/help.c +++ b/src/help.c @@ -979,8 +979,17 @@ int *plen; case '\r': case '\n': case ' ': - done = 1; h = wlistdata->pos; + if (h == MAXWIN && Layer2Window(flayer) && Layer2Window(flayer)->w_type == W_TYPE_GROUP) + break; + if (display && h != MAXWIN && wtab[h] == D_fore) + { + wlistdata->group = wtab[h]; + wlistdata->pos = wtab[h]->w_number; + wlistpage(); + break; + } + done = 1; if (!display || h == MAXWIN || !wtab[h] || wtab[h] == D_fore || (flayer->l_cvlist && flayer->l_cvlist->c_lnext)) HelpAbort(); #ifdef MULTIUSER -- 2.11.4.GIT