patch 9.1.0554: :bw leaves jumplist and tagstack data around
Problem: :bw leaves jumplist and tagstack data around
(Paul "Joey" Clark)
Solution: Wipe jumplist and tagstack references to the wiped buffer
(LemonBoy)
As documented the :bwipeout command brutally deletes all the references
to the buffer, so let's make it delete all the entries in the jump list
and tag stack referring to the wiped-out buffer.
fixes: #8201
closes: #15185
Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
d33a518025
commit
4ff3a9b1e3
@ -144,7 +144,6 @@ static void print_tag_list(int new_tag, int use_tagstack, int num_matches, char_
|
||||
#if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL)
|
||||
static int add_llist_tags(char_u *tag, int num_matches, char_u **matches);
|
||||
#endif
|
||||
static void tagstack_clear_entry(taggy_T *item);
|
||||
|
||||
static char_u *tagmatchname = NULL; // name of last used tag
|
||||
|
||||
@ -4233,7 +4232,7 @@ find_extra(char_u **pp)
|
||||
/*
|
||||
* Free a single entry in a tag stack
|
||||
*/
|
||||
static void
|
||||
void
|
||||
tagstack_clear_entry(taggy_T *item)
|
||||
{
|
||||
VIM_CLEAR(item->tagname);
|
||||
|
||||
Reference in New Issue
Block a user