diff options
author | nyamatongwe <devnull@localhost> | 2008-04-15 09:25:23 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-04-15 09:25:23 +0000 |
commit | bfe854a337365e3dddad40ba08641ce505f30047 (patch) | |
tree | 54b627c3b5e740736b5bee268bbf74385289640a /src | |
parent | 9bcec66cef8b09c0f599556eaf3a8a588c0652ee (diff) | |
download | scintilla-mirror-bfe854a337365e3dddad40ba08641ce505f30047.tar.gz |
Florian Balmer fixed VCHome for last line of document.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index ff8d0fbcf..dba827c8d 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -173,7 +173,7 @@ int Document::LineEndPosition(int position) { int Document::VCHomePosition(int position) { int line = LineFromPosition(position); int startPosition = LineStart(line); - int endLine = LineStart(line + 1) - 1; + int endLine = LineEnd(line); int startText = startPosition; while (startText < endLine && (cb.CharAt(startText) == ' ' || cb.CharAt(startText) == '\t' ) ) startText++; @@ -1380,7 +1380,7 @@ void Document::EnsureStyledTo(int pos) { } } -int Document::SetLineState(int line, int state) { +int Document::SetLineState(int line, int state) { int statePrevious = cb.SetLineState(line, state); if (state != statePrevious) { DocModification mh(SC_MOD_CHANGELINESTATE, 0, 0, 0, 0, line); |