Skip to content

preserve window proportions does not apply to vertical splits #2113

@DylanMartin0930

Description

@DylanMartin0930

Description

when setting preserve_window_proportions to true, it preserves the sizing of horizontal splits only

Neovim version

NVIM v0.10.0-dev-1368+gbc66b755f-Homebrew
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

Macos Ventura 13.3

nvim-tree version

fb65be0

Minimal config

require("nvim-tree").setup({
view = {
preserve_window_proportions = true,
},
}

Steps to reproduce

  1. create vertical split
  2. resize it in any direction
  3. open and close file tree

Expected behavior

expect vertical split to stay the same size after toggling file tree on and off

Actual behavior

toggling file tree on and off causes vertical splits to be resized to be 50/50

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions