mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 14:56:08 +00:00
This reverts commit 8b8ecf44f2
.
It is causing performance problems on exit.
Fix #21082.
This commit is contained in:
@@ -2667,8 +2667,6 @@ static ShaDaWriteResult shada_write(ShaDaWriteDef *const sd_writer, ShaDaReadDef
|
||||
}
|
||||
|
||||
// Initialize jump list
|
||||
setpcmark();
|
||||
cleanup_jumplist(curwin, false);
|
||||
wms->jumps_size = shada_init_jumps(wms->jumps, &removable_bufs);
|
||||
|
||||
const bool search_highlighted = !(no_hlsearch
|
||||
@@ -4038,13 +4036,11 @@ static bool shada_removable(const char *name)
|
||||
static inline size_t shada_init_jumps(PossiblyFreedShadaEntry *jumps,
|
||||
khash_t(bufset) *const removable_bufs)
|
||||
{
|
||||
if (!curwin->w_jumplistlen) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Initialize jump list
|
||||
size_t jumps_size = 0;
|
||||
const void *jump_iter = NULL;
|
||||
|
||||
setpcmark();
|
||||
cleanup_jumplist(curwin, false);
|
||||
do {
|
||||
xfmark_T fm;
|
||||
jump_iter = mark_jumplist_iter(jump_iter, curwin, &fm);
|
||||
@@ -4117,7 +4113,6 @@ void shada_encode_jumps(msgpack_sbuffer *const sbuf)
|
||||
khash_t(bufset) removable_bufs = KHASH_EMPTY_TABLE(bufset);
|
||||
find_removable_bufs(&removable_bufs);
|
||||
PossiblyFreedShadaEntry jumps[JUMPLISTSIZE];
|
||||
cleanup_jumplist(curwin, true);
|
||||
size_t jumps_size = shada_init_jumps(jumps, &removable_bufs);
|
||||
msgpack_packer packer;
|
||||
msgpack_packer_init(&packer, sbuf, msgpack_sbuffer_write);
|
||||
|
Reference in New Issue
Block a user