From 0d5ab646a0717c405c3b707ae968bc8723b64e3a Mon Sep 17 00:00:00 2001 From: mysticbbs Date: Fri, 15 Feb 2013 23:20:16 -0500 Subject: [PATCH] Search data now properly clears itself after an exit code (hi or lo) is used. --- mystic/bbs_ansi_menubox.pas | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mystic/bbs_ansi_menubox.pas b/mystic/bbs_ansi_menubox.pas index 2c26c1d..d06e12f 100644 --- a/mystic/bbs_ansi_menubox.pas +++ b/mystic/bbs_ansi_menubox.pas @@ -702,6 +702,12 @@ Begin End; Else If Pos(Ch, HiChars) > 0 Then Begin + If SearchStr <> '' Then Begin + SearchStr := ''; + If Assigned(SearchProc) Then + SearchProc(Self, SearchStr); + End; + ExitCode := Ch; Exit; End; @@ -719,6 +725,12 @@ Begin DownArrow; End Else If Pos(Ch, LoChars) > 0 Then Begin + If SearchStr <> '' Then Begin + SearchStr := ''; + If Assigned(SearchProc) Then + SearchProc(Self, SearchStr); + End; + ExitCode := Ch; Exit; End Else Begin