aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-12-23 02:00:14 +0000
committernyamatongwe <devnull@localhost>2001-12-23 02:00:14 +0000
commit1eb275016cabd6def66796ec48c516c1dacc3ec8 (patch)
tree25ee02b04b0d8f4cf5f44ac5acfad0f425ed4825
parent8f3017b66060885334c606876758d57e4c2298ba (diff)
downloadscintilla-mirror-1eb275016cabd6def66796ec48c516c1dacc3ec8.tar.gz
Fixed bug with finding a column when there is a tab in the line.
-rw-r--r--src/Document.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index e96e7d03a..8483d86f1 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -647,6 +647,7 @@ int Document::FindColumn(int line, int column) {
char ch = cb.CharAt(position);
if (ch == '\t') {
columnCurrent = NextTab(columnCurrent, tabInChars);
+ position++;
} else if (ch == '\r') {
return position;
} else if (ch == '\n') {