There is patch from Mageia Linux in attachment.
diff -ur tuxtype-1.8.3.orig/src/editor.c tuxtype-1.8.3/src/editor.c
--- tuxtype-1.8.3.orig/src/editor.c	2014-08-20 07:55:27.000000000 +0400
+++ tuxtype-1.8.3/src/editor.c	2015-10-16 18:56:41.000000000 +0300
@@ -276,8 +276,10 @@
           if (inRect(button_rect[Remove], event.button.x, event.button.y))
           {
             //pop up something?
+            if (num_lists==0 || loc>=num_lists) break;
             ChooseRemoveList(list_titles[loc], file_names[loc]);
             change = 1;
+            loc=0;
           }
 
           if (inRect(button_rect[Done], event.button.x, event.button.y)) 
@@ -291,8 +293,10 @@
           if (event.key.keysym.sym == SDLK_BACKSPACE)
           {
             //Remove wordlist
+            if (num_lists==0 || loc>=num_lists) break;
             ChooseRemoveList(list_titles[loc], file_names[loc]);
             change = 1;
+            loc=0;
           }
 
           if (event.key.keysym.sym == SDLK_ESCAPE)

Reply via email to