Skip to content

Commit aeaa4c9

Browse files
hellhoundvim-scripts
authored andcommitted
Version 2.8.3.6: minor bugfix: Fixed a small bug introduced in the previous release.
1 parent d11eb29 commit aeaa4c9

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

plugin/python_ifold.a.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
" Language: Python
33
" Author: Jorrit Wiersma (foldexpr), Max Ischenko (foldtext), Robert,
44
" Ames (line counts), Jean-Pierre Chauvel (bugfixes and improvements)
5-
" Last Change: 2008 Apr 1
6-
" Version: 2.8.3.5.a
7-
5+
" Last Change: 2008 Apr 18
6+
" Version: 2.8.3.6.a
7+
" Bugfixes: Jean-Pierre Chauvel
88

99

1010
if exists("b:did_ftplugin")
@@ -115,7 +115,7 @@ function! GetPythonFoldAccurately(lnum)
115115
endif
116116

117117
" Classes and functions get their own folds
118-
if line =~ '^\s*\(class\|def\)\s'
118+
if line =~ '^\s*\(class\|def\)\s'
119119
" Verify if the next line is a class or function definition
120120
" as well
121121
let imm_nnum = a:lnum + 1
@@ -135,7 +135,7 @@ function! GetPythonFoldAccurately(lnum)
135135
" we end a fold.
136136
let nnonblank = nextnonblank(a:lnum + 1)
137137
let nextline = getline(nnonblank)
138-
if (nextline !~ '^\s*#.*') || (nextline =~ '^\s*#\+\s*\(class\|def\)\s')
138+
if (nextline !~ '^\s*#\+.*')
139139
let nind = indent(nnonblank)
140140
if nind <= b:nestinglevel
141141
let b:nestinglevel = nind

plugin/python_ifold.b.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
" Language: Python
33
" Author: Jorrit Wiersma (foldexpr), Max Ischenko (foldtext), Robert,
44
" Ames (line counts), Jean-Pierre Chauvel (bugfixes and improvements)
5-
" Last Change: 2008 Apr 1
6-
" Version: 2.8.3.5.b
7-
5+
" Last Change: 2008 Apr 18
6+
" Version: 2.8.3.6.b
7+
" Bugfixes: Jean-Pierre Chauvel
88

99

1010
if exists("b:did_ftplugin")
@@ -115,7 +115,7 @@ function! GetPythonFoldAccurately(lnum)
115115
endif
116116

117117
" Classes and functions get their own folds
118-
if line =~ '^\s*\(class\|def\)\s'
118+
if line =~ '^\s*\(class\|def\)\s'
119119
" Verify if the next line is a class or function definition
120120
" as well
121121
let imm_nnum = a:lnum + 1
@@ -135,7 +135,7 @@ function! GetPythonFoldAccurately(lnum)
135135
" we end a fold.
136136
let nnonblank = nextnonblank(a:lnum + 1)
137137
let nextline = getline(nnonblank)
138-
if (nextline !~ '^\s*#.*') || (nextline =~ '^\s*#\+\s*\(class\|def\)\s')
138+
if (nextline !~ '^\s*#\+.*')
139139
let nind = indent(nnonblank)
140140
if nind <= b:nestinglevel
141141
let b:nestinglevel = nind

plugin/python_ifold.c.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
" Language: Python
33
" Author: Jorrit Wiersma (foldexpr), Max Ischenko (foldtext), Robert,
44
" Ames (line counts), Jean-Pierre Chauvel (bugfixes and improvements)
5-
" Last Change: 2008 Apr 1
6-
" Version: 2.8.3.5.c
7-
5+
" Last Change: 2008 Apr 18
6+
" Version: 2.8.3.6.c
7+
" Bugfixes: Jean-Pierre Chauvel
88

99

1010
if exists("b:did_ftplugin")
@@ -123,7 +123,7 @@ function! GetPythonFoldAccurately(lnum)
123123
endif
124124

125125
" Classes and functions get their own folds
126-
if line =~ '^\s*\(class\|def\)\s'
126+
if line =~ '^\s*\(class\|def\)\s'
127127
" Verify if the next line is a class or function definition
128128
" as well
129129
let imm_nnum = a:lnum + 1
@@ -143,7 +143,7 @@ function! GetPythonFoldAccurately(lnum)
143143
" we end a fold.
144144
let nnonblank = nextnonblank(a:lnum + 1)
145145
let nextline = getline(nnonblank)
146-
if (nextline !~ '^\s*#.*') || (nextline =~ '^\s*#\+\s*\(class\|def\)\s')
146+
if (nextline !~ '^\s*#\+.*')
147147
let nind = indent(nnonblank)
148148
if nind <= b:nestinglevel
149149
let b:nestinglevel = nind

0 commit comments

Comments
 (0)