CtrlLib: TextCtrl, LineEdit, CodeEditor: view mode

git-svn-id: svn://ultimatepp.org/upp/trunk@11592 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-12-20 12:10:24 +00:00
parent fe56d7c2cc
commit 3d0e1db02f
55 changed files with 1240 additions and 714 deletions

View file

@ -7,7 +7,7 @@ DiffSyntax::DiffSyntax()
hout = NULL;
}
void DiffSyntax::Highlight(const wchar *start, const wchar *end, HighlightOutput& hls, CodeEditor *editor, int line, int pos)
void DiffSyntax::Highlight(const wchar *start, const wchar *end, HighlightOutput& hls, CodeEditor *editor, int line, int64 pos)
{
hout = &hls;
Do(start, end, editor, line, editor ? editor->GetTabSize() : 4, pos);
@ -20,7 +20,7 @@ void DiffSyntax::Put(int ink, int n, int paper)
hout->Put(n, hl_style[ink], hl_style[paper]);
}
void DiffSyntax::Do(const wchar *ln, const wchar *end, CodeEditor *editor, int line, int tabsize, int pos)
void DiffSyntax::Do(const wchar *ln, const wchar *end, CodeEditor *editor, int line, int tabsize, int64 pos)
{
const int lineLength = FindTheNumberOfCharsToLineEnd(ln, end);