]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages v9.1.0556
authorzeertzjq <zeertzjq@outlook.com>
Wed, 10 Jul 2024 17:36:36 +0000 (19:36 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 10 Jul 2024 17:36:36 +0000 (19:36 +0200)
commit2e7d89b39883b0cfd3e615b02bd55186e00fb7ce
tree6d9387c894a8a2d6c344335938b76951c5b152a0
parenta3a14d5469681676310d39c19e110a57cd8ac7c6
patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages

Problem:  :bwipe doesn't remove file from jumplist and tagstack of other
          tabpages. Time complexity of mark_forget_file() is O(n^2) when
          removing all entries (after v9.1.0554)
Solution: Use FOR_ALL_TAB_WINDOWS().  Start the loops over the arrays
          from the end instead of the start (zeertzjq)

closes: #15199

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/buffer.c
src/mark.c
src/testdir/test_jumplist.vim
src/testdir/test_tagjump.vim
src/version.c