Skip to content

vim._extui prevents session window size restoration #37330

@drowning-cat

Description

@drowning-cat

Problem

After enabling vim._extui, Neovim does not save window sizes in the session file.

diff Session-before.vim Session.vim
30,31c30
< exe 'vert 1resize ' . ((&columns * 30 + 87) / 174)
< exe 'vert 2resize ' . ((&columns * 143 + 87) / 174)
---
> wincmd =
54,55c53
< exe 'vert 1resize ' . ((&columns * 30 + 87) / 174)
< exe 'vert 2resize ' . ((&columns * 143 + 87) / 174)
---
> wincmd =

Steps to reproduce

nvim --clean
:30vnew
:lua require("vim._extui").enable{}
:mksession! Session.vim | source Session.vim

Expected behavior

Restore window sizes.

Nvim version (nvim -v)

NVIM v0.12.0-dev-1998+g272ec9627c

Vim (not Nvim) behaves the same?

no

Operating system/version

Arch Linux

Terminal name/version

alacritty 0.16.1 (42f49eeb)

$TERM environment variable

alacritty, tmux-256color

Installation

MordechaiHadad/bob

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-statesave/restore editor state: shada, context, ctx, sessions, mksession, undo, swapfloatwinfloating windows, popups, hover

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions