aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-05-15 17:43:53 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-05-15 17:43:53 -0400
commit630ba1e515d224b6bbc1537169658e3cb7543d80 (patch)
tree0eea75f5c312c55a8205d04f65b147d36fb335e4 /src/textadept.c
parente101a0190a282bf30ed6496d627e362774c1864a (diff)
downloadtextadept-630ba1e515d224b6bbc1537169658e3cb7543d80.tar.gz
textadept-630ba1e515d224b6bbc1537169658e3cb7543d80.zip
Fixed GTK assertion errors when removing find history items; src/textadept.c
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
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