Loading autoload/folds/python.vim +11 −0 Original line number Diff line number Diff line Loading @@ -167,6 +167,14 @@ function! s:newFold(type, indent, ...) \ "child was not found in parent" endfunction function fold.dissolve() for child in self.children call child.dissolve() endfor let self.parent = 0 let self.children = 0 endfunction function fold.abort() let parent = self.parent call parent.remove_child(self) Loading Loading @@ -205,6 +213,9 @@ function! s:newFold(type, indent, ...) endfunction function! s:parsebuffer() if exists('b:root.dissolve') call b:root.dissolve() endif let b:root = s:newFold('file', 0) let b:root.has_docstring = 0 let cur_fold = b:root Loading Loading
autoload/folds/python.vim +11 −0 Original line number Diff line number Diff line Loading @@ -167,6 +167,14 @@ function! s:newFold(type, indent, ...) \ "child was not found in parent" endfunction function fold.dissolve() for child in self.children call child.dissolve() endfor let self.parent = 0 let self.children = 0 endfunction function fold.abort() let parent = self.parent call parent.remove_child(self) Loading Loading @@ -205,6 +213,9 @@ function! s:newFold(type, indent, ...) endfunction function! s:parsebuffer() if exists('b:root.dissolve') call b:root.dissolve() endif let b:root = s:newFold('file', 0) let b:root.has_docstring = 0 let cur_fold = b:root Loading