Skip to content

Commit 7e64387

Browse files
authored
Merge pull request #82 from enderwillsaveus/clang-format-on-insert-multibuffer-fix
Fix clearing wrong autocmds
2 parents 157cfe8 + e0655eb commit 7e64387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/clang_format.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ endfunction
262262

263263
function! clang_format#enable_format_on_insert() abort
264264
augroup plugin-clang-format-auto-format-insert
265-
autocmd!
265+
autocmd! * <buffer>
266266
autocmd InsertEnter <buffer> let s:pos_on_insertenter = getpos('.')
267267
autocmd InsertLeave <buffer> call s:format_inserted_area()
268268
augroup END

0 commit comments

Comments
 (0)