From f8089c69c6e9ec44c0b36d7b3ed85afe96f02053 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 29 Oct 2017 22:27:13 -0400 Subject: fix collapsing braces when there's more than one extra line --- vim/plugin/autobrace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim') diff --git a/vim/plugin/autobrace.vim b/vim/plugin/autobrace.vim index f979976..59bfc8b 100644 --- a/vim/plugin/autobrace.vim +++ b/vim/plugin/autobrace.vim @@ -100,7 +100,7 @@ function! s:maybe_collapse_pair() return "\" endif - return "\\JJi\" + return "\\" . (l:end[0] - l:prev_line_idx + 1) . "Ji\" endfunction function! s:prevchar() -- cgit v1.2.3-54-g00ecf