diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-03-28 10:11:57 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-28 10:11:57 +0100 |
commit | 620e85265ce04654053c64f8058914ecafe4eb38 (patch) | |
tree | 2c373a108c77e887a655e6c94f3086de42fa8bc7 /src/tag.c | |
parent | 5a2e3ec9ac72b6e644fea4ebba7e632498296e2f (diff) |
patch 9.1.0216: Error on exit with EXITFREE and 'winfixbuf'v9.1.0216
Problem: Error on exit with EXITFREE and 'winfixbuf'.
Solution: Handle DT_FREE before checking for 'winfixbuf'.
(zeertzjq)
closes: #14314
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -289,17 +289,6 @@ do_tag( static char_u **matches = NULL; static int flags; - if (postponed_split == 0 && !check_can_set_curbuf_forceit(forceit)) - return FALSE; - -#ifdef FEAT_EVAL - if (tfu_in_use) - { - emsg(_(e_cannot_modify_tag_stack_within_tagfunc)); - return FALSE; - } -#endif - #ifdef EXITFREE if (type == DT_FREE) { @@ -313,6 +302,17 @@ do_tag( } #endif +#ifdef FEAT_EVAL + if (tfu_in_use) + { + emsg(_(e_cannot_modify_tag_stack_within_tagfunc)); + return FALSE; + } +#endif + + if (postponed_split == 0 && !check_can_set_curbuf_forceit(forceit)) + return FALSE; + if (type == DT_HELP) { type = DT_TAG; |