auto-session icon indicating copy to clipboard operation
auto-session copied to clipboard

[BUG] Tabs not restored

Open simonmandlik opened this issue 2 years ago • 1 comments

Describe the bug Tabs are not properly restored after upgrading to Nvim 0.7

To Reproduce Steps to reproduce the behavior:

  1. touch a b && nvim
  2. :e a | tabnew b | SaveSession
  3. :qa
  4. nvim

Expected behavior Two tabs a and b with b in focus. Instead, only b is shown

Baseline (please complete the following information):

  • Result of set sessionoptions?: sessionoptions=winpos,terminal
  • OS. e.g uname -a: MacOS Monterey
  • Neovim version nvim --version NVIM v0.7.2

simonmandlik avatar Sep 17 '22 07:09 simonmandlik

@simonmandlik hey, your sessionoptions doesn't include tabpages. Try adding that and see if you get the behaviour you were expecting.

rmagatti avatar Sep 18 '22 05:09 rmagatti

That was it, thanks :) A dumb error when rewriting config from vimscript to lua

simonmandlik avatar Sep 19 '22 22:09 simonmandlik