diff options
author | nyamatongwe <devnull@localhost> | 2004-07-22 01:02:15 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2004-07-22 01:02:15 +0000 |
commit | 1e897e643d5acc133f9c90beeec20428d2037e41 (patch) | |
tree | 43b1c8d5d353905b6e9917d9bcd2b6dd335a991d /src/Document.cxx | |
parent | 80cef9861be6eb687bace05e989677a3b3df675d (diff) | |
download | scintilla-mirror-1e897e643d5acc133f9c90beeec20428d2037e41.tar.gz |
New method SCI_FINDCOLUMN.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 97abd6254..c06397fa8 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -653,7 +653,7 @@ int Document::FindColumn(int line, int column) { int position = LineStart(line); int columnCurrent = 0; if ((line >= 0) && (line < LinesTotal())) { - while (columnCurrent < column) { + while ((columnCurrent < column) && (position < Length())) { char ch = cb.CharAt(position); if (ch == '\t') { columnCurrent = NextTab(columnCurrent, tabInChars); |