Fix a bug where a user could leave a buffer with unsaved changes by issuing a :b [arg] or :buffer [arg] editor command
Repro:
Open pyvim file1 file2
Edit file 1 without issuing a write command
Attempt to switch to file2's buffer (':b file2' or ':b 1')
Without the fix this will succeed
After the fix this displays an editor message ('No write since last change (add ! to override)') similar to the official vim.
Fix a bug where a user could leave a buffer with unsaved changes by issuing a :b [arg] or :buffer [arg] editor command
Repro: Open pyvim file1 file2 Edit file 1 without issuing a write command Attempt to switch to file2's buffer (':b file2' or ':b 1') Without the fix this will succeed
After the fix this displays an editor message ('No write since last change (add ! to override)') similar to the official vim.