zefei / vim-wintabs

Modern buffer manager for Vim
MIT License
325 stars 25 forks source link

Error when closing tab with unsaved changes #41

Closed dylan-chong closed 6 years ago

dylan-chong commented 6 years ago

How to replicate:

  1. Configure vimrc
    let g:wintabs_autoclose_vim = 1
    let g:wintabs_autoclose_vimtab = 1
    let g:wintabs_autoclose = 2
  2. run vim
  3. Type :tabedit
  4. Insert some text and go back to normal mode
  5. type call wintabs#close()
  6. Do not save changes to 'Untitled'
  7. See the error below
screen shot 2018-07-17 at 9 49 30 am
zefei commented 6 years ago

Thanks for the repro and vimrc! Will try to fix this very soon.

zefei commented 6 years ago

This should be fixed in the last commit.