summaryrefslogtreecommitdiff
path: root/lib/libmenu
diff options
context:
space:
mode:
authorblymn <blymn@NetBSD.org>2003-04-19 12:52:39 +0000
committerblymn <blymn@NetBSD.org>2003-04-19 12:52:39 +0000
commita54cbbdb50ddeb2b0abf43b79dbb710ecb51a600 (patch)
tree12225826b37ef9b6ec226261c76997de88ce748a /lib/libmenu
parent2d4bb67d40426497e86b2e1a55eb786cc5fd88a8 (diff)
Remove the resetting of top_row, cur_item and the pattern buffer from
post_menu so menu state is kept across upost/post actions. This addresses PR #21218.
Diffstat (limited to 'lib/libmenu')
-rw-r--r--lib/libmenu/post.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libmenu/post.c b/lib/libmenu/post.c
index 67af82c83a9..2493b4a2eb6 100644
--- a/lib/libmenu/post.c
+++ b/lib/libmenu/post.c
@@ -1,4 +1,4 @@
-/* $NetBSD: post.c,v 1.11 2003/03/09 01:08:48 lukem Exp $ */
+/* $NetBSD: post.c,v 1.12 2003/04/19 12:52:39 blymn Exp $ */
/*-
* Copyright (c) 1998-1999 Brett Lymn (blymn@baea.com.au, brett_lymn@yahoo.com.au)
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: post.c,v 1.11 2003/03/09 01:08:48 lukem Exp $");
+__RCSID("$NetBSD: post.c,v 1.12 2003/04/19 12:52:39 blymn Exp $");
#include <menu.h>
#include <stdlib.h>
@@ -54,13 +54,6 @@ post_menu(MENU *menu)
return E_NOT_CONNECTED;
menu->in_init = 1;
- menu->cur_item = 0; /* reset current item in case it was set before */
- menu->top_row = 0; /* and the top row too */
- if (menu->pattern != NULL) { /* and the pattern buffer....sigh */
- free(menu->pattern);
- menu->plen = 0;
- menu->match_len = 0;
- }
if (menu->menu_init != NULL)
menu->menu_init(menu);