diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-10-29 22:27:13 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-10-29 22:39:40 -0400 |
commit | f8089c69c6e9ec44c0b36d7b3ed85afe96f02053 (patch) | |
tree | 785d8875a3a74d2837e387a8ba17805b0559cd9f /vim | |
parent | 9f85b99fdcd25f9c6abd6397712ae0c83235d337 (diff) | |
download | conf-f8089c69c6e9ec44c0b36d7b3ed85afe96f02053.tar.gz conf-f8089c69c6e9ec44c0b36d7b3ed85afe96f02053.zip |
fix collapsing braces when there's more than one extra line
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/autobrace.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 "\<BS>" endif - return "\<Esc>\<BS>JJi\<BS>" + return "\<Esc>\<BS>" . (l:end[0] - l:prev_line_idx + 1) . "Ji\<BS>" endfunction function! s:prevchar() |