2 Commits

Author SHA1 Message Date
9730a073fd chore(main): release 1.2.1 (#34)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-13 08:56:34 +02:00
8f7cbccfb5 fix: dont save the session when only gitcommit buffers are present. Fixes #14 2023-10-13 08:47:08 +02:00
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## [1.2.1](https://github.com/folke/persistence.nvim/compare/v1.2.0...v1.2.1) (2023-10-13)
### Bug Fixes
* dont save the session when only `gitcommit` buffers are present. Fixes [#14](https://github.com/folke/persistence.nvim/issues/14) ([8f7cbcc](https://github.com/folke/persistence.nvim/commit/8f7cbccfb506fe6cb35db9ad966137c363b049c5))
## [1.2.0](https://github.com/folke/persistence.nvim/compare/v1.1.0...v1.2.0) (2023-10-13)

View File

@ -39,6 +39,9 @@ function M.start()
if vim.bo[b].buftype ~= "" then
return false
end
if vim.bo[b].filetype == "gitcommit" then
return false
end
return vim.api.nvim_buf_get_name(b) ~= ""
end, vim.api.nvim_list_bufs())
if #bufs == 0 then