aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-05-22 00:10:35 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-05-25 10:01:17 +0200
commita9d7ec4587d8eb20f12ebecc427ad818fb0e4971 (patch)
tree4a3ec8787e9dae501ea2c1430c13c174f289ac4b /test
parent4769deb36a54c3b2a4a2d2addb2937c1aa7dd629 (diff)
downloadrneovim-a9d7ec4587d8eb20f12ebecc427ad818fb0e4971.tar.gz
rneovim-a9d7ec4587d8eb20f12ebecc427ad818fb0e4971.tar.bz2
rneovim-a9d7ec4587d8eb20f12ebecc427ad818fb0e4971.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/autocmd/autocmd_spec.lua8
1 files changed, 4 insertions, 4 deletions
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()