From 69cbd6fec7c22424d92ed5bbfdffc3f97655bd9e Mon Sep 17 00:00:00 2001 From: Pixeller Date: Tue, 7 Feb 2023 21:17:16 +0800 Subject: [PATCH] A problem Toggle open it must reset win width, Because It's always very wide if you open new splint window. --- autoload/undotree.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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