Skip to content

Using g:MergetoolSetLayoutCallback for equal sized windows doesn't work on initial MergetoolStart #18

@idbrii

Description

@idbrii

I want equal sized windows whenever mergetool lays out the windows.

function s:on_mergetool_set_layout(split)
    wincmd =
endfunction
let g:MergetoolSetLayoutCallback = function('s:on_mergetool_set_layout')

This works for MergetoolToggleLayout (switching between lmr and lm), but not the initial layout from MergetoolStart.

Using gvim started like this (see #17) :

gvim --nofork -c "simalt ~x" -c "let g:mergetool_args_order = 'MBLR'" -c "Merge" "%MERGED%" "%BASE%" "%LOCAL%" "%REMOTE%"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions