aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/buffer_updates_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-08-19 06:13:08 -0700
committerGitHub <noreply@github.com>2021-08-19 06:13:08 -0700
commit19a0d90bb3479bb6516be229f6001646329d842f (patch)
tree9c4aa1f2c91d71c10cc42e9e3eed04627cc97482 /test/functional/api/buffer_updates_spec.lua
parent7bff642169438a66557b65d6aba80536eaf570fa (diff)
parentd8ab8cccd0cf5acdf3e7c3ca229cad4160a6fc2e (diff)
downloadrneovim-19a0d90bb3479bb6516be229f6001646329d842f.tar.gz
rneovim-19a0d90bb3479bb6516be229f6001646329d842f.tar.bz2
rneovim-19a0d90bb3479bb6516be229f6001646329d842f.zip
Merge #15410 defaults: 'hidden', 'nojoinspaces'
ref #6289
Diffstat (limited to 'test/functional/api/buffer_updates_spec.lua')
-rw-r--r--test/functional/api/buffer_updates_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/api/buffer_updates_spec.lua b/test/functional/api/buffer_updates_spec.lua
index 05ca0d5f4d..c9c9be5406 100644
--- a/test/functional/api/buffer_updates_spec.lua
+++ b/test/functional/api/buffer_updates_spec.lua
@@ -159,9 +159,8 @@ describe('API: buffer events:', function()
tick = tick + 1
expectn('nvim_buf_lines_event', {b, tick, 29, 29, firstfour, false})
- -- create a new empty buffer and wipe out the old one ... this will
- -- turn off buffer events
- command('enew!')
+ -- delete the current buffer to turn off buffer events
+ command('bdelete!')
expectn('nvim_buf_detach_event', {b})
-- add a line at the start of an empty file
@@ -269,7 +268,7 @@ describe('API: buffer events:', function()
'original foo'}, false})
-- type text into the first line of a blank file, one character at a time
- command('enew!')
+ command('bdelete!')
tick = 2
expectn('nvim_buf_detach_event', {b})
local bnew = nvim('get_current_buf')
@@ -666,7 +665,8 @@ describe('API: buffer events:', function()
tick = tick + 1
expectn('nvim_buf_changedtick_event', {b, tick})
- -- close our buffer by creating a new one
+ -- close our buffer and create a new one
+ command('bdelete')
command('enew')
expectn('nvim_buf_detach_event', {b})