Skip to content

Commit

Permalink
fix(Layer): buffer = 0 in mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Iron-E committed May 16, 2022
1 parent 31a79a8 commit 49246ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/libmodal/src/Layer.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--- Normalizes a `buffer = true|false` argument into a number.
--- Normalizes a `buffer = true|false|0` argument into a number.
--- @param buffer boolean|number the argument to normalize
--- @return nil|number
local function normalize_buffer(buffer)
if buffer == true then
if buffer == true or buffer == 0 then
return vim.api.nvim_get_current_buf()
elseif buffer == false then
return nil
Expand Down

0 comments on commit 49246ba

Please sign in to comment.