aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-10-20 11:10:08 +1100
committerNeil <nyamatongwe@gmail.com>2014-10-20 11:10:08 +1100
commit4f6d4cbd012f4eb9e6d3647b110483c9a6487e35 (patch)
tree77ed04ecb220abd79d52f27e8a81b7bd74b37a41 /src/CellBuffer.cxx
parent687b1f2afe8d491434ee0695ff902397e641250a (diff)
downloadscintilla-mirror-4f6d4cbd012f4eb9e6d3647b110483c9a6487e35.tar.gz
Optimize retrieval of empty range.
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index 710e32403..a770dc335 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -378,7 +378,7 @@ char CellBuffer::CharAt(int position) const {
}
void CellBuffer::GetCharRange(char *buffer, int position, int lengthRetrieve) const {
- if (lengthRetrieve < 0)
+ if (lengthRetrieve <= 0)
return;
if (position < 0)
return;