diff options
author | nyamatongwe <unknown> | 2006-10-29 23:19:47 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-10-29 23:19:47 +0000 |
commit | 6b8558d865cb777f784568e24b543c608c809a34 (patch) | |
tree | e15e5841d9a1ee935439ff46bd9a3570aa77c7dc /src | |
parent | 5c30341f6a681eafd0567d14af5669d172883e04 (diff) | |
download | scintilla-mirror-6b8558d865cb777f784568e24b543c608c809a34.tar.gz |
Fix infinite loop when GetColumn called with position beyond end of text.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index fee76840d..e530b0423 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -684,6 +684,8 @@ int Document::GetColumn(int pos) { return column; } else if (ch == '\n') { return column; + } else if (i >= Length()) { + return column; } else { column++; i = MovePositionOutsideChar(i + 1, 1); |