mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
fix(shada): preserve marks after delete across sessions (#35795)
Problem: Marks are lost after `:bdelete` because `ignore_buf()` filters out unlisted buffers during shada mark processing. Solution: Revert to original buffer checks for mark operations, avoiding `!buf->b_p_bl` condition that incorrectly ignores deleted buffers.
This commit is contained in:
@@ -2443,7 +2443,8 @@ static ShaDaWriteResult shada_write(FileDescriptor *const sd_writer,
|
||||
fname = fm.fname;
|
||||
} else {
|
||||
const buf_T *const buf = buflist_findnr(fm.fmark.fnum);
|
||||
if (ignore_buf(buf, &removable_bufs)) {
|
||||
if (buf == NULL || buf->b_ffname == NULL
|
||||
|| set_has(ptr_t, &removable_bufs, (ptr_t)buf)) {
|
||||
continue;
|
||||
}
|
||||
fname = buf->b_ffname;
|
||||
|
Reference in New Issue
Block a user