+2008-05-31 Chris Allegretta <chrisa@asty.org>
+ * prompt.c: Tentative fix for bug #23144: using arrow keys in
+ search buffer affects main window (by Mike Frysinger)
+
2008-05-31 Chris Allegretta <chrisa@asty.org>
* global.c: Fix for Savannah bug #23442: left/right arrow keys
do not work with --enable-tiny (by Mike Frysinger)
assert(h != NULL);
if ((*h)->prev == NULL)
- return NULL;
+ return (*h)->data;
*h = (*h)->prev;
assert(h != NULL);
if ((*h)->next == NULL)
- return NULL;
+ return (*h)->data;
*h = (*h)->next;