diff options
author | nyamatongwe <unknown> | 2008-04-15 09:25:23 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2008-04-15 09:25:23 +0000 |
commit | 0b8dcb9c99a80e857e8eaa470fec07e3ea9cf829 (patch) | |
tree | 54b627c3b5e740736b5bee268bbf74385289640a /src/Document.cxx | |
parent | 60db4f72e7d26f45047bf159ed75736699c7da1c (diff) | |
download | scintilla-mirror-0b8dcb9c99a80e857e8eaa470fec07e3ea9cf829.tar.gz |
Florian Balmer fixed VCHome for last line of document.
Diffstat (limited to 'src/Document.cxx')
-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); |