From cd389b80f078d95d8a23b2f6e7ca3ea5768abc26 Mon Sep 17 00:00:00 2001 From: rbong Date: Tue, 20 Aug 2024 12:19:30 -0400 Subject: [PATCH] Equalize windows manually when &equalalways is off Partial fix for: https://github.com/rbong/vim-flog/issues/136 This fix does not work well for `:Flogsplit`, since it will impact all windows, not just relevant windows. To only resize impacted windows, we need a smarter option. --- autoload/flog/floggraph/side_win.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/flog/floggraph/side_win.vim b/autoload/flog/floggraph/side_win.vim index 0f43909..48ef764 100644 --- a/autoload/flog/floggraph/side_win.vim +++ b/autoload/flog/floggraph/side_win.vim @@ -74,6 +74,9 @@ function! flog#floggraph#side_win#Open(cmd, keep_focus, is_tmp) abort if a:is_tmp call flog#floggraph#side_win#CloseTmp() + if !&equalalways + wincmd = + endif endif for l:win_id in l:new_win_ids