diff options
author | Neil <nyamatongwe@gmail.com> | 2014-10-20 11:10:08 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-10-20 11:10:08 +1100 |
commit | 0bf2ee129c737946314a036b014a01ca56d9d624 (patch) | |
tree | 0a0c0d95c629aced995631e9889bb0ea9ce480d3 | |
parent | 29811496ab936b978e21f135dc67e4be192aa28c (diff) | |
download | scintilla-mirror-0bf2ee129c737946314a036b014a01ca56d9d624.tar.gz |
Optimize retrieval of empty range.
-rw-r--r-- | src/CellBuffer.cxx | 2 |
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; |