From 630ba1e515d224b6bbc1537169658e3cb7543d80 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 15 May 2013 17:43:53 -0400 Subject: Fixed GTK assertion errors when removing find history items; src/textadept.c --- src/textadept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/textadept.c b/src/textadept.c index 4384a78c..50c1459b 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -270,7 +270,7 @@ static void find_add_to_history(const char *text, ListStore *store) { gtk_list_store_set(store, &iter, 0, text, -1); g_free(first_item); int count = 1; - while (gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter)) + while (iter.stamp && gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter)) if (++count > 10) gtk_list_store_remove(store, &iter); // keep 10 items } #elif CURSES -- cgit v1.2.3