folke / persistence.nvim

💾 Simple session management for Neovim
Apache License 2.0
591 stars 26 forks source link

fix: don't save `gitrebase` session #44

Closed FineFindus closed 6 months ago

FineFindus commented 6 months ago

Skip saving the session if it contains a gitrebase buffer. Similar to https://github.com/folke/persistence.nvim/commit/8f7cbccfb506fe6cb35db9ad966137c363b049c5.

Steps to reproduce:

  1. Set nvim as $EDITOR.
  2. run git rebase --interactive and close nvim
  3. re-open nvim and notice how the gitrebase buffer is opened
folke commented 6 months ago

thansk