Skip to content

Commit

Permalink
test: fix BufModifiedSet
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk committed Nov 8, 2020
1 parent 3628d1e commit 45d9f4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/functional/autocmd/bufmodifiedset_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local clear = helpers.clear
local eq = helpers.eq
local eval = helpers.eval
local source = helpers.source
local request = helpers.request

describe('BufModified', function()
before_each(clear)
Expand All @@ -12,9 +13,9 @@ describe('BufModified', function()
source([[
let g:modified = 0
autocmd BufModifiedSet * let g:modified += 1
execute "normal! aa\<Esc>"
execute "normal! u"
]])
request("nvim_command", [[normal! aa\<Esc>]])
request("nvim_command", [[normal! u]])
eq(2, eval('g:modified'))
end)
end)

0 comments on commit 45d9f4f

Please sign in to comment.