diff options
author | Marko Njezic <unknown> | 2012-04-14 20:04:52 +0200 |
---|---|---|
committer | Marko Njezic <unknown> | 2012-04-14 20:04:52 +0200 |
commit | 3b25a9446a3ae8f66af2e671a0248dfe4faedcec (patch) | |
tree | 4beedce9e129c479bb0ef12c2d029f560634ef0a /src/Document.cxx | |
parent | d5110563aee91348b5c60a13a0aaf2893d50d3ea (diff) | |
download | scintilla-mirror-3b25a9446a3ae8f66af2e671a0248dfe4faedcec.tar.gz |
Make FindColumn() return correct position when column falls inside tab width. Bug #3483713.
Diffstat (limited to 'src/Document.cxx')
-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; |