diff options
author | nyamatongwe <unknown> | 2004-07-22 01:02:15 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-07-22 01:02:15 +0000 |
commit | ff5918808d0a33dda52edf2b429d44b19b4a637d (patch) | |
tree | 43b1c8d5d353905b6e9917d9bcd2b6dd335a991d /src/Document.cxx | |
parent | 0aa0b154af8da590d14bd44a6d9c68bdec912d7d (diff) | |
download | scintilla-mirror-ff5918808d0a33dda52edf2b429d44b19b4a637d.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); |