diff options
author | Marko Njezic <devnull@localhost> | 2012-04-14 20:04:52 +0200 |
---|---|---|
committer | Marko Njezic <devnull@localhost> | 2012-04-14 20:04:52 +0200 |
commit | 7eee490fb21169eb01538b532074c1eb4bd0f6b8 (patch) | |
tree | e6aaff191b85316e0b09cfa7c8ffc2796692cdd4 | |
parent | 817b02c3e3a6d82d6f19f77f15f795a072a82a4c (diff) | |
download | scintilla-mirror-7eee490fb21169eb01538b532074c1eb4bd0f6b8.tar.gz |
Make FindColumn() return correct position when column falls inside tab width. Bug #3483713.
-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 e0c304456..6cae14e8a 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1116,6 +1116,8 @@ int Document::FindColumn(int line, int column) { char ch = cb.CharAt(position); if (ch == '\t') { columnCurrent = NextTab(columnCurrent, tabInChars); + if (columnCurrent > column) + return position; position++; } else if (ch == '\r') { return position; |