From c6458e6d0e0a062dcbfbfa56cf9e280910195843 Mon Sep 17 00:00:00 2001 From: Jerome Reybert <jreybert@gmail.com> Date: Wed, 4 Nov 2015 23:16:00 +0100 Subject: [PATCH] DONOTMERGE: move set filetype to show_magit() open files are not folded by default --- plugin/magit.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/magit.vim b/plugin/magit.vim index 8607817..202cceb 100644 --- a/plugin/magit.vim +++ b/plugin/magit.vim @@ -556,8 +556,6 @@ function! magit#update_buffer() silent! call cursor(section_line+3+<SID>mg_get_inline_help_line_nb('commit'), 0) endif - set filetype=magit - endfunction " magit#toggle_help: toggle inline help showing in magit buffer @@ -608,6 +606,8 @@ function! magit#show_magit(display, ...) let &l:foldlevel = b:magit_default_fold_level setlocal filetype=magit "setlocal readonly + set filetype=magit + call magit#utils#setbufnr(bufnr(g:magit_buffer_name)) call magit#sign#init() -- GitLab