aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-03-04 10:40:57 +0000
committernyamatongwe <devnull@localhost>2002-03-04 10:40:57 +0000
commit4bc8a4fcb5cbeed57b98ff00eddb8e8845e26a3b (patch)
treebb179ed11cb26f7b298015a3c5d7578ad8f68a57 /src/Editor.h
parent36f68f123487bb30e2a1f57b3eb49e5729be24a5 (diff)
downloadscintilla-mirror-4bc8a4fcb5cbeed57b98ff00eddb8e8845e26a3b.tar.gz
Fixed bug when switching buffers led to stale line layout cache entries
by deallocating the cache when switching buffers. When number of lines decreases, line layout cache entries for extra lines are deleted.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 35aea3fc3..d9719dc53 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -93,10 +93,10 @@ class LineLayoutCache {
int styleClock;
void Allocate(int length_);
void AllocateForLevel(int linesOnScreen, int linesInDoc);
- void Deallocate();
public:
LineLayoutCache();
virtual ~LineLayoutCache();
+ void Deallocate();
enum {
llcNone=SC_CACHE_NONE,
llcCaret=SC_CACHE_CARET,