From a9d7ec4587d8eb20f12ebecc427ad818fb0e4971 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 22 May 2019 00:10:35 +0200 Subject: refactor: introduce XFREE_CLEAR() Unfortunately we cannot indiscriminately replace xfree() with XFREE_CLEAR(), because comparing pointers after freeing them is a common pattern. Example in `tv_list_remove_items()`: xfree(li); if (li == item2) { break; } Instead we can do it selectively/explicitly. ref #1375 --- test/functional/autocmd/autocmd_spec.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/functional/autocmd/autocmd_spec.lua b/test/functional/autocmd/autocmd_spec.lua index 337c5442ef..1eeaa62864 100644 --- a/test/functional/autocmd/autocmd_spec.lua +++ b/test/functional/autocmd/autocmd_spec.lua @@ -148,10 +148,10 @@ describe('autocmd', function() funcs.execute('autocmd Tabnew')) end) - it('window works', function() - -- Nvim uses a special window to execute certain actions for an invisible buffer, - -- internally called autcmd_win and mentioned in the docs at :help E813 - -- Do some safety checks for redrawing and api accesses to this window. + it('internal `aucmd_win` window', function() + -- Nvim uses a special internal window `aucmd_win` to execute certain + -- actions for an invisible buffer (:help E813). + -- Check redrawing and API accesses to this window. local screen = Screen.new(50, 10) screen:attach() -- cgit