Changeset 1169:71460e4a7460 for browser.c
Legend:
- Unmodified
- Added
- Removed
-
browser.c
r1135 r1169 497 497 state.imap_browse = 1; 498 498 imap_init_browse (f, &state); 499 strfcpy (LastDir, f, sizeof (LastDir));499 strfcpy (LastDir, state.folder, sizeof (LastDir)); 500 500 } 501 501 else … … 605 605 else if (state.imap_browse) 606 606 { 607 strfcpy (buf, state.entry[menu->current].name, sizeof (buf));607 strfcpy (buf, state.entry[menu->current].name, sizeof (buf)); 608 608 } 609 609 #endif … … 650 650 else if (state.imap_browse) 651 651 { 652 strfcpy (LastDir, state.entry[menu->current].name, 653 sizeof (LastDir));652 strfcpy (LastDir, state.entry[menu->current].name, 653 sizeof (LastDir)); 654 654 } 655 655 #endif … … 699 699 #ifdef USE_IMAP 700 700 else if (state.imap_browse) 701 { 702 strfcpy (f, state.entry[menu->current].name, flen); 703 } 701 strfcpy (f, state.entry[menu->current].name, flen); 704 702 #endif 705 703 else … … 872 870 873 871 destroy_state (&state); 872 #ifdef USE_IMAP 873 if (state.imap_browse) 874 { 875 init_state (&state, NULL); 876 state.imap_browse = 1; 877 imap_init_browse (LastDir, &state); 878 menu->data = state.entry; 879 init_menu (&state, menu, title, sizeof (title), buffy); 880 } 881 else 882 #endif 874 883 if (examine_directory (menu, &state, LastDir, NULL) == 0) 875 884 init_menu (&state, menu, title, sizeof (title), buffy);
