diff options
author | nyamatongwe <devnull@localhost> | 2007-06-24 12:02:23 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-06-24 12:02:23 +0000 |
commit | 48974cb7802717896ed7560bf0520cf942b8c245 (patch) | |
tree | fd041ad1e922734432d617c50c2c80575a71ec84 /src/Document.cxx | |
parent | bd5472e347f8cfc139197a64c59d8a79d654ec0c (diff) | |
download | scintilla-mirror-48974cb7802717896ed7560bf0520cf942b8c245.tar.gz |
Make the styles array variable length so it can be increased to 256 entries
without always taking 24K.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index cfcda92be..51800b905 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1271,11 +1271,7 @@ void Document::SetCharClasses(const unsigned char *chars, CharClassify::cc newCh void Document::SetStylingBits(int bits) { stylingBits = bits; - stylingBitsMask = 0; - for (int bit = 0; bit < stylingBits; bit++) { - stylingBitsMask <<= 1; - stylingBitsMask |= 1; - } + stylingBitsMask = (1 << stylingBits) - 1; } void Document::StartStyling(int position, char mask) { |