diff options
author | nyamatongwe <devnull@localhost> | 2010-01-19 02:30:56 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-01-19 02:30:56 +0000 |
commit | b68ad6ba5a145bbce33bff620e4bdb31925e8d82 (patch) | |
tree | d4b7c00a6ae0dd556dce8f80909da143349bdfd2 /src | |
parent | 20b7fa84e15b4752878de3780777c769e0a2e4b2 (diff) | |
download | scintilla-mirror-b68ad6ba5a145bbce33bff620e4bdb31925e8d82.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') { |