From ea123fdec0b52f9d589ae07de26e7382d105114e Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 23 Dec 2001 02:00:14 +0000 Subject: Fixed bug with finding a column when there is a tab in the line. --- src/Document.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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') { -- cgit v1.2.3