aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-09-23 10:35:04 +1000
committernyamatongwe <unknown>2011-09-23 10:35:04 +1000
commit9472c27c87971bbf5fa2a3333b145c725fafab2a (patch)
treeebf4b6d8245dee5d2f19c925050959b54ce482f3 /src
parentb7cb1e0f6097ab19148a07330a66f37fecc6bb1f (diff)
downloadscintilla-mirror-9472c27c87971bbf5fa2a3333b145c725fafab2a.tar.gz
Add GetAllLinesVisible method as this can be used to minimize folding overhead.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 7dbaa361e..a1c88cc20 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -8259,6 +8259,9 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_GETLINEVISIBLE:
return cs.GetVisible(wParam);
+ case SCI_GETALLLINESVISIBLE:
+ return cs.HiddenLines() ? 0 : 1;
+
case SCI_SETFOLDEXPANDED:
if (cs.SetExpanded(wParam, lParam != 0)) {
RedrawSelMargin();