Patch 8.2.0965

6 views
Skip to first unread message

Bram Moolenaar

unread,
Jun 12, 2020, 4:16:11 PM6/12/20
to vim...@googlegroups.com

Patch 8.2.0965
Problem: Has_funcundefined() is not used.
Solution: Delete the function. (Dominique Pellé, closes #6242)
Files: src/autocmd.c, src/proto/autocmd.pro


*** ../vim-8.2.0964/src/autocmd.c 2020-06-10 20:56:55.021354582 +0200
--- src/autocmd.c 2020-06-12 22:13:12.693678134 +0200
***************
*** 1760,1774 ****
return (first_autopat[(int)EVENT_CMDUNDEFINED] != NULL);
}

- /*
- * Return TRUE when there is an FuncUndefined autocommand defined.
- */
- int
- has_funcundefined(void)
- {
- return (first_autopat[(int)EVENT_FUNCUNDEFINED] != NULL);
- }
-
#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Return TRUE when there is a TextYankPost autocommand defined.
--- 1760,1765 ----
*** ../vim-8.2.0964/src/proto/autocmd.pro 2019-12-12 12:55:14.000000000 +0100
--- src/proto/autocmd.pro 2020-06-12 22:13:16.277660358 +0200
***************
*** 23,29 ****
int has_textchangedP(void);
int has_insertcharpre(void);
int has_cmdundefined(void);
- int has_funcundefined(void);
int has_textyankpost(void);
int has_completechanged(void);
void block_autocmds(void);
--- 23,28 ----
*** ../vim-8.2.0964/src/version.c 2020-06-12 22:08:56.418965055 +0200
--- src/version.c 2020-06-12 22:15:01.409140629 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 965,
/**/

--
Have you heard about the new Barbie doll? It's called Divorce
Barbie. It comes with most of Ken's stuff.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages