diff --git a/designer/utslcodeeditor.tsf b/designer/utslcodeeditor.tsf index a866a46..2cad870 100644 --- a/designer/utslcodeeditor.tsf +++ b/designer/utslcodeeditor.tsf @@ -3956,6 +3956,7 @@ type TEditer=class(TCustomcontrol) // ct := 0; for i,v in fs do begin + TryDispatch(); if not FIsFinding then break; o.SetStatusText("查找文件:"+i); it := GetOpendPageItemByFileName(i); @@ -4052,7 +4053,6 @@ type TEditer=class(TCustomcontrol) // end function TryDispatch(); begin - t := now(); if(t-FLastDispathTime)>0.25e-5 then begin @@ -4080,6 +4080,7 @@ type TEditer=class(TCustomcontrol) // if rsult then begin rt := length(rsult); + iits := 0; for i,v in rsult do begin if i=0 and (not fnoshow) then @@ -4092,6 +4093,12 @@ type TEditer=class(TCustomcontrol) // if not ifstring(v[3]) then continue; scap := format(" %d:(第%d行) ",i,rdx)+limitstringlength(v[3]); FFindListWnd.AppendItem(array("caption":scap,"file":it.OrigScriptPath,"line":rdx)); + iits++; + if iits>80 then + begin + iits := 0; + TryDispatch(); + end end end end else @@ -4274,6 +4281,7 @@ type TEditer=class(TCustomcontrol) // end function FindFiles(dir,ft,sub,ret); begin + TryDispatch(); dir_ := dir; sp := ioFileseparator(); if not(dir_[length(dir_)]=sp)then dir_ += sp; diff --git a/tsleditor.exe b/tsleditor.exe index 7d770c4..b2992a0 100644 Binary files a/tsleditor.exe and b/tsleditor.exe differ