Skip to content

Commit 11b36cd

Browse files
committed
PatchUnicode-1051 v0.9 コード変更に対応 sakura-editor#125 sakura-editor#1615 sakura-editor#1610
1 parent 2ff385d commit 11b36cd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

sakura_core/CGrepAgent.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <iterator>
5050
#include <deque>
5151
#include <memory>
52+
#include "apiwrap/StdApi.h"
5253
#include "apiwrap/StdControl.h"
5354
#include "CSelectLang.h"
5455
#include "sakura_rc.h"
@@ -164,7 +165,7 @@ class CFileLoadOrWnd{
164165
if( 0 < nLineLen ){
165166
if( 1 < nLineLen && (*buffer)[nLineLen - 2] == WCODE::CR &&
166167
(*buffer)[nLineLen - 1] == WCODE::LF){
167-
pcEol->SetType(EOL_CRLF);
168+
pcEol->SetType(EEolType::cr_and_lf);
168169
}else{
169170
pcEol->SetTypeByString(buffer->GetStringPtr() + nLineLen - 1, 1);
170171
}
@@ -775,7 +776,8 @@ DWORD CGrepAgent::DoGrep(
775776
(sGrepOption.bGrepSeparateFolder ? szWindowName : currentFile.c_str() + nPathLen),
776777
bOutputBaseFolder,
777778
bOutputFolderName,
778-
cmemMessage
779+
cmemMessage,
780+
cUnicodeBuffer
779781
);
780782
if( nTreeRet == -1 ){
781783
nGrepTreeResult = -1;
@@ -811,7 +813,9 @@ DWORD CGrepAgent::DoGrep(
811813
&cRegexp,
812814
0,
813815
bOutputBaseFolder,
814-
&nHitCount
816+
&nHitCount,
817+
cmemMessage,
818+
cUnicodeBuffer
815819
);
816820
if( nTreeRet == -1 ){
817821
nGrepTreeResult = -1;

0 commit comments

Comments
 (0)