]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1193: Unnecessary use of STRCAT() in au_event_disable() v9.1.1193
authorzeertzjq <zeertzjq@outlook.com>
Mon, 10 Mar 2025 20:15:19 +0000 (21:15 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 10 Mar 2025 20:15:19 +0000 (21:15 +0100)
commit969e11a18b145241dc0ab39fc1be7ed814655dfc
treef8d4c8b10ab2bc3b4b06e466705567b3f89e0efd
parent835bc014c03ff523bf7912a26ea0c0711d1ac7ee
patch 9.1.1193: Unnecessary use of STRCAT() in au_event_disable()

Problem:  Unnecessary use of STRCAT() in au_event_disable().  STRCAT()
          seeks to the end of new_ei, but here the end is already known.
Solution: Use STRCPY() and add p_ei_len to new_ei.  Also fix a typo in a
          comment.  Add a test that 'eventignore' works in :argdo
          (zeertzjq).

closes: #16844

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/autocmd.c
src/ex_getln.c
src/testdir/test_arglist.vim
src/version.c