aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-06-11 07:27:08 +0000
committernyamatongwe <unknown>2000-06-11 07:27:08 +0000
commit54a6b61c3813e2468388d33f65800f57c9712ebf (patch)
tree16a2f773e382bddf2f9474bddb21079d96a992f5
parent935baaa4e986d42dbe50b389fa0e16d5673dfcd3 (diff)
downloadscintilla-mirror-54a6b61c3813e2468388d33f65800f57c9712ebf.tar.gz
Made IsControlCharacter inline as Hans says this speeds it up.
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e13fe1a2e..c6c1e8424 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -185,7 +185,7 @@ int Editor::MaxScrollPos() {
return retVal;
}
-bool IsControlCharacter(char ch) {
+static inline bool IsControlCharacter(char ch) {
// iscntrl returns true for lots of chars > 127 which are displayable
return ch >= 0 && ch < ' ';
}