From 19245b09f6ec9cd6ed555dd4156e96def23d563d Mon Sep 17 00:00:00 2001 From: yemai Date: Thu, 15 Aug 2019 16:21:54 +0800 Subject: [PATCH] refact: improve format --- ftplugin/vue/fold.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ftplugin/vue/fold.vim b/ftplugin/vue/fold.vim index afbd9c6..6a98824 100644 --- a/ftplugin/vue/fold.vim +++ b/ftplugin/vue/fold.vim @@ -62,8 +62,7 @@ function! GetVueFold(lnum) " Vue tag if this_line =~ s:vue_tag_start return '>1' - endif - if this_line =~ s:vue_tag_end + elseif this_line =~ s:vue_tag_end return '<1' endif @@ -74,7 +73,7 @@ function! GetVueFold(lnum) if a:lnum > 1 let prev_indent = s:IndentLevel(a:lnum - 1) - if this_line =~ s:block_end && (this_indent < prev_indent) + if (this_line =~ s:block_end) && (this_indent < prev_indent) return prev_indent endif endif