as part of the title. This can get a bit confusing when scrolling using up and down (as opposed to page-up/page-down.) Currently only used for select_items().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3047 c06c8d41-db1a-0410-9941-cceddc491573
GF6VKRPTDDBF4XLECTYJSRM7PTSH5AV7TLM5COV34R75GTBKPPEQC if ( flags & MF_SHOW_PAGENUMBERS ){// The total number of pages is well defined, but the current// page a bit less so. To make sense, we hack it so that your// current page is based on the first line you're seeing, *unless*// you're seeing the last item.int numpages = items.empty() ? 1 : ((items.size()-1) / pagesize + 1);int curpage = first_entry / pagesize + 1;if ( in_page(items.size() - 1) )curpage = numpages;cprintf(" (page %d of %d)", curpage, numpages);}