diff options
author | Neil <nyamatongwe@gmail.com> | 2015-07-29 09:46:53 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-07-29 09:46:53 +1000 |
commit | 2270ab97445c6f12bd0fddb273ab617fdb421594 (patch) | |
tree | a66a4e5103caa5d372f09ef2068bc051f73aeda6 /lexlib/LexerModule.cxx | |
parent | a45905e5991b5198d180e3386aa6b33bb5e88f32 (diff) | |
download | scintilla-mirror-2270ab97445c6f12bd0fddb273ab617fdb421594.tar.gz |
Change lexlib to use Sci_Position and Sci_PositionU to prepare for large file
support.
Diffstat (limited to 'lexlib/LexerModule.cxx')
-rw-r--r-- | lexlib/LexerModule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlib/LexerModule.cxx b/lexlib/LexerModule.cxx index aab868a41..390bae06e 100644 --- a/lexlib/LexerModule.cxx +++ b/lexlib/LexerModule.cxx @@ -94,11 +94,11 @@ void LexerModule::Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initSt void LexerModule::Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler) const { if (fnFolder) { - int lineCurrent = styler.GetLine(startPos); + Sci_Position lineCurrent = styler.GetLine(startPos); // Move back one line in case deletion wrecked current line fold state if (lineCurrent > 0) { lineCurrent--; - int newStartPos = styler.LineStart(lineCurrent); + Sci_Position newStartPos = styler.LineStart(lineCurrent); lengthDoc += startPos - newStartPos; startPos = newStartPos; initStyle = 0; |