Updated copyright notice to 2012
[xboard.git] / winboard / wgamelist.c
index 9d15fa1..d0b624c 100644 (file)
@@ -1,7 +1,7 @@
 /*\r
  * wgamelist.c -- Game list window for WinBoard\r
  *\r
- * Copyright 1995, 2009, 2010, 2011 Free Software Foundation, Inc.\r
+ * Copyright 1995, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.\r
  *\r
  * Enhancements Copyright 2005 Alessandro Scotti\r
  *\r
@@ -86,6 +86,8 @@ static int GameListToListBox( HWND hDlg, BOOL boReset, char * pszFilter, struct
         }\r
     }\r
 \r
+    if(byPos) InitSearch();\r
+\r
     for (nItem = 0; nItem < ((ListGame *) gameList.tailPred)->number; nItem++){\r
         char * st = NULL;\r
         BOOL skip = FALSE;\r
@@ -299,7 +301,7 @@ GameListDialog(HWND hDlg, UINT message,     WPARAM wParam, LPARAM lParam)
       SendDlgItemMessage(hDlg, OPT_GameListText, LB_SETCURSEL, nItem, 0);\r
       break; /* load the game*/\r
 \r
-//    case OPT_GameListPrev:\r
+    case OPT_GameListPrev:\r
       nItem = SendDlgItemMessage(hDlg, OPT_GameListText, LB_GETCURSEL, 0, 0);\r
       nItem--;\r
       if (nItem < 0) {\r
@@ -311,7 +313,7 @@ GameListDialog(HWND hDlg, UINT message,     WPARAM wParam, LPARAM lParam)
       break; /* load the game*/\r
 \r
     /* [AS] */\r
-    case OPT_GameListPrev:\r
+    case OPT_GameListFind:\r
     case IDC_GameListDoFilter:\r
         {\r
             char filter[MAX_FILTER_LENGTH+1];\r