From 77ca209e1568d98bb0e4945adb5df643cce0fa69 Mon Sep 17 00:00:00 2001 From: Christoffer Aasted Date: Fri, 26 Jun 2026 14:59:46 +0200 Subject: [PATCH] fix(au): on_buffilepost trigger at :term --- plugin/gitgutter.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 0281f9f..47a3ae0 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -264,6 +264,8 @@ function! s:on_buffilepre(bufnr) endfunction function! s:on_buffilepost(bufnr) + if !empty(&buftype) | return | endif + if len(s:renaming) > 1 if s:renaming[0] != a:bufnr throw 'gitgutter rename error ' . s:renaming[0] . ' ' . a:bufnr