Skip to content
Snippets Groups Projects
Commit 1adb5e55 authored by rswindell's avatar rswindell
Browse files

Remember last-entered text search string while at msg reading prompt.

parent 05dc023c
No related branches found
No related tags found
No related merge requests found
......@@ -358,6 +358,7 @@ int sbbs_t::scanposts(uint subnum, long mode, const char *find)
post_t *post;
smbmsg_t msg;
find_buf[0]=0;
cursubnum=subnum; /* for ARS */
if(!chk_ar(cfg.sub[subnum]->read_ar,&useron,&client)) {
bprintf("\1n\r\nYou can't read messages on %s %s\r\n"
......@@ -791,7 +792,7 @@ int sbbs_t::scanposts(uint subnum, long mode, const char *find)
if((i=get_start_msg(this,&smb))<0)
break;
bputs(text[SearchStringPrompt]);
if(!getstr(find_buf,40,K_LINE|K_UPPER))
if(!getstr(find_buf,40,K_LINE|K_UPPER|K_EDIT|K_AUTODEL))
break;
if(yesno(text[DisplaySubjectsOnlyQ]))
searchposts(subnum,post,(long)i,smb.msgs,find_buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment