From 1a82b474a3a6e035844e4f2e32f65cdca3c0cf00 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 14 Jun 2007 12:56:07 +0000 Subject: Fixing position cache size setting and documenting the position cache. --- doc/ScintillaDoc.html | 8 ++++++++ src/Editor.cxx | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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){ SCI_GETWRAPSTARTINDENT
SCI_SETLAYOUTCACHE(int cacheMode)
SCI_GETLAYOUTCACHE
+ SCI_SETPOSITIONCACHE(int size)
+ SCI_GETPOSITIONCACHE
SCI_LINESSPLIT(int pixelWidth)
SCI_LINESJOIN
SCI_WRAPCOUNT(int docLine)
@@ -4401,6 +4403,12 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){
+

SCI_SETPOSITIONCACHE(int size)
+ SCI_GETPOSITIONCACHE
+ 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 SCI_SETPOSITIONCACHE.

+

SCI_LINESSPLIT(int pixelWidth)
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: -- cgit v1.2.3