aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
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
commit0bf2ee129c737946314a036b014a01ca56d9d624 (patch)
tree0a0c0d95c629aced995631e9889bb0ea9ce480d3 /src
parent29811496ab936b978e21f135dc67e4be192aa28c (diff)
downloadscintilla-mirror-0bf2ee129c737946314a036b014a01ca56d9d624.tar.gz
Optimize retrieval of empty range.
Diffstat (limited to 'src')
-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;