From 81e7b66ec52f55097a913fe4ec7921b33d4b9663 Mon Sep 17 00:00:00 2001 From: donho Date: Fri, 14 Sep 2007 00:10:30 +0000 Subject: [PATCH] [ENHANCE] Enhance the hide lines feature. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@32 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.cpp | 2 +- PowerEditor/src/Notepad_plus.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index a42464f2c..0a7928c14 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -3050,7 +3050,7 @@ void Notepad_plus::command(int id) _pEditView->execute(SCI_HIDELINES, startLine, endLine); _pEditView->execute(SCI_MARKERADD, startLine-1, MARK_HIDELINESBEGIN); _pEditView->execute(SCI_MARKERADD, endLine+1, MARK_HIDELINESEND); - + break; } diff --git a/PowerEditor/src/Notepad_plus.h b/PowerEditor/src/Notepad_plus.h index 59af3ac79..ba550301e 100644 --- a/PowerEditor/src/Notepad_plus.h +++ b/PowerEditor/src/Notepad_plus.h @@ -798,6 +798,8 @@ private: { if (_pEditView->execute(SCI_GETLINEVISIBLE, i)) break; + hideLinesMarkDelete(i, MARK_HIDELINESBEGIN); + hideLinesMarkDelete(i, MARK_HIDELINESEND); } start = i; } @@ -810,6 +812,8 @@ private: { if (_pEditView->execute(SCI_GETLINEVISIBLE, i)) break; + hideLinesMarkDelete(i, MARK_HIDELINESBEGIN); + hideLinesMarkDelete(i, MARK_HIDELINESEND); } end = i; }