summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-10-29 22:27:13 -0400
committerJesse Luehrs <doy@tozt.net>2017-10-29 22:39:40 -0400
commitf8089c69c6e9ec44c0b36d7b3ed85afe96f02053 (patch)
tree785d8875a3a74d2837e387a8ba17805b0559cd9f /vim
parent9f85b99fdcd25f9c6abd6397712ae0c83235d337 (diff)
downloadconf-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.vim2
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()