diff options
author | nyamatongwe <devnull@localhost> | 2007-06-14 12:56:07 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-06-14 12:56:07 +0000 |
commit | 27b201e64429509fc1dae5a244624f6ef8be591e (patch) | |
tree | 71f4185e78eef123191f1abb8ffd9eeaa2478d07 | |
parent | 0531f0fca7d82be735e4217d489d54bae448b9c0 (diff) | |
download | scintilla-mirror-27b201e64429509fc1dae5a244624f6ef8be591e.tar.gz |
Fixing position cache size setting and documenting the position cache.
-rw-r--r-- | doc/ScintillaDoc.html | 8 | ||||
-rw-r--r-- | src/Editor.cxx | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 053a49fe9..bf6971aa2 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -4220,6 +4220,8 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ <a class="message" href="#SCI_GETWRAPSTARTINDENT">SCI_GETWRAPSTARTINDENT</a><br /> <a class="message" href="#SCI_SETLAYOUTCACHE">SCI_SETLAYOUTCACHE(int cacheMode)</a><br /> <a class="message" href="#SCI_GETLAYOUTCACHE">SCI_GETLAYOUTCACHE</a><br /> + <a class="message" href="#SCI_SETPOSITIONCACHE">SCI_SETPOSITIONCACHE(int size)</a><br /> + <a class="message" href="#SCI_GETPOSITIONCACHE">SCI_GETPOSITIONCACHE</a><br /> <a class="message" href="#SCI_LINESSPLIT">SCI_LINESSPLIT(int pixelWidth)</a><br /> <a class="message" href="#SCI_LINESJOIN">SCI_LINESJOIN</a><br /> <a class="message" href="#SCI_WRAPCOUNT">SCI_WRAPCOUNT(int docLine)</a><br /> @@ -4401,6 +4403,12 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ </table> <br /> + <p><b id="SCI_SETPOSITIONCACHE">SCI_SETPOSITIONCACHE(int size)</b><br /> + <b id="SCI_GETPOSITIONCACHE">SCI_GETPOSITIONCACHE</b><br /> + The position cache stores position information for short runs of text + so that their layout can be determined more quickly if the run recurs. + The size in entries of this cache can be set with <code>SCI_SETPOSITIONCACHE</code>.</p> + <p><b id="SCI_LINESSPLIT">SCI_LINESSPLIT(int pixelWidth)</b><br /> Split a range of lines indicated by the target into lines that are at most pixelWidth wide. Splitting occurs on word boundaries wherever possible in a similar manner to line wrapping. diff --git a/src/Editor.cxx b/src/Editor.cxx index 6af15a297..f96ef1bfc 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6379,7 +6379,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { return llc.GetLevel(); case SCI_SETPOSITIONCACHE: - posCache.SetSize(0x400); + posCache.SetSize(wParam); break; case SCI_GETPOSITIONCACHE: |