/[LeafOK_CVS]/lbbs/src/section_list_display.c
ViewVC logotype

Diff of /lbbs/src/section_list_display.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.43 by sysadm, Tue Sep 30 15:06:42 2025 UTC Revision 1.44 by sysadm, Wed Oct 1 08:58:25 2025 UTC
# Line 291  static enum select_cmd_t section_list_se Line 291  static enum select_cmd_t section_list_se
291                                          (*p_page_id)--;                                          (*p_page_id)--;
292                                          *p_selected_index = BBS_article_limit_per_page - 1;                                          *p_selected_index = BBS_article_limit_per_page - 1;
293                                  }                                  }
294                                    else if (ch == KEY_UP || ch == 'k') // Rotate to the tail of section list
295                                    {
296                                            if (total_page > 0)
297                                            {
298                                                    *p_page_id = total_page - 1;
299                                            }
300                                            if (item_count > 0)
301                                            {
302                                                    *p_selected_index = item_count - 1;
303                                            }
304                                    }
305                          }                          }
306                          else                          else
307                          {                          {
# Line 318  static enum select_cmd_t section_list_se Line 329  static enum select_cmd_t section_list_se
329                                          (*p_page_id)++;                                          (*p_page_id)++;
330                                          *p_selected_index = 0;                                          *p_selected_index = 0;
331                                  }                                  }
332                                  else // end of last page                                  else if (ch == KEY_DOWN || ch == 'j') // Rotate to the head of section list
333                                  {                                  {
334                                          return CHANGE_PAGE; // force refresh pages                                          *p_page_id = 0;
335                                            *p_selected_index = 0;
336                                  }                                  }
337                          }                          }
338                          else                          else


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1