style: mode no longer needed as param for view

This commit is contained in:
Folke Lemaitre 2022-12-25 13:46:42 +01:00
parent 037f242430
commit e632eb4ae0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -31,7 +31,7 @@ function M.show(mode)
return
end
M.view = (M.view and M.view.win) and M.view or M.create({ mode = mode })
M.view = (M.view and M.view.win) and M.view or M.create()
if mode then
M.view.state.mode = mode
end