Browse Source

[ENHANCE] Enhance the hide lines feature.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@32 f5eea248-9336-0410-98b8-ebc06183d4e3
pull/343/head^2
donho 17 years ago
parent
commit
81e7b66ec5
  1. 2
      PowerEditor/src/Notepad_plus.cpp
  2. 4
      PowerEditor/src/Notepad_plus.h

2
PowerEditor/src/Notepad_plus.cpp

@ -3050,7 +3050,7 @@ void Notepad_plus::command(int id)
_pEditView->execute(SCI_HIDELINES, startLine, endLine); _pEditView->execute(SCI_HIDELINES, startLine, endLine);
_pEditView->execute(SCI_MARKERADD, startLine-1, MARK_HIDELINESBEGIN); _pEditView->execute(SCI_MARKERADD, startLine-1, MARK_HIDELINESBEGIN);
_pEditView->execute(SCI_MARKERADD, endLine+1, MARK_HIDELINESEND); _pEditView->execute(SCI_MARKERADD, endLine+1, MARK_HIDELINESEND);
break; break;
} }

4
PowerEditor/src/Notepad_plus.h

@ -798,6 +798,8 @@ private:
{ {
if (_pEditView->execute(SCI_GETLINEVISIBLE, i)) if (_pEditView->execute(SCI_GETLINEVISIBLE, i))
break; break;
hideLinesMarkDelete(i, MARK_HIDELINESBEGIN);
hideLinesMarkDelete(i, MARK_HIDELINESEND);
} }
start = i; start = i;
} }
@ -810,6 +812,8 @@ private:
{ {
if (_pEditView->execute(SCI_GETLINEVISIBLE, i)) if (_pEditView->execute(SCI_GETLINEVISIBLE, i))
break; break;
hideLinesMarkDelete(i, MARK_HIDELINESBEGIN);
hideLinesMarkDelete(i, MARK_HIDELINESEND);
} }
end = i; end = i;
} }

Loading…
Cancel
Save