diff --git a/autoload/undotree.vim b/autoload/undotree.vim index 7e74ea6..0ace873 100644 --- a/autoload/undotree.vim +++ b/autoload/undotree.vim @@ -349,7 +349,7 @@ function! s:undotree.BindAu() abort au! au BufEnter call s:exitIfLast() au BufEnter,BufLeave if exists('t:undotree') | - \let t:undotree.width = winwidth(winnr()) | endif + \let t:undotree.width = g:undotree_SplitWidth | endif au BufWinLeave if exists('t:diffpanel') | \call t:diffpanel.Hide() | endif augroup end