Skip to content

Commit 26cdf2d

Browse files
author
Gaspar Chilingarov
committed
fix wrong commenting inside open folds
1 parent 3d178f5 commit 26cdf2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/vimide/comments.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
function vimide#comments#wrap(mode, target) range
66
if a:mode == 'x'
77
call NERDComment(a:mode, a:target)
8-
elseif foldlevel('.') == 0
8+
elseif foldclosed('.') == -1
99
call NERDComment(a:mode, a:target)
1010
else
1111
let foldStart = foldclosed('.')

0 commit comments

Comments
 (0)