diff options
author | nyamatongwe <unknown> | 2010-01-19 02:30:56 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-01-19 02:30:56 +0000 |
commit | d0b59574279e8b25149adb3393b522897f84fe6c (patch) | |
tree | d4b7c00a6ae0dd556dce8f80909da143349bdfd2 /src | |
parent | 666d7d9e2a99d0eacb5e21217a3d8ed01be27e4c (diff) | |
download | scintilla-mirror-d0b59574279e8b25149adb3393b522897f84fe6c.tar.gz |
Reduced scope of variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index ab29c798a..a5d1adbbb 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -804,8 +804,8 @@ int Document::GetColumn(int pos) { int Document::FindColumn(int line, int column) { int position = LineStart(line); - int columnCurrent = 0; if ((line >= 0) && (line < LinesTotal())) { + int columnCurrent = 0; while ((columnCurrent < column) && (position < Length())) { char ch = cb.CharAt(position); if (ch == '\t') { |