Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
MisanthropicBit committed Jul 28, 2024
1 parent 0decfdc commit 7e5089f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/winmove/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end

---@param value any
local function win_id_validator(value)
return { value, is_nonnegative_number, "a non-negative number" },
return { value, is_nonnegative_number, "a non-negative number" }
end

---@param value any
Expand All @@ -54,7 +54,7 @@ end

---@param value any
local function dir_validator(value)
return { value, is_valid_direction, "a valid direction" },
return { value, is_valid_direction, "a valid direction" }
end

--- Set current state
Expand Down Expand Up @@ -740,8 +740,8 @@ end
---@param anchor winmove.ResizeAnchor?
function winmove.resize_window(win_id, dir, count, anchor)
vim.validate({
win_id = { win_id, is_nonnegative_number, "a non-negative number" },
dir = { dir, is_valid_direction, "a valid direction" },
win_id = win_id_validator(win_id),
dir = dir_validator(dir),
count = { count, is_nonnegative_number, "a non-negative number" },
anchor = { anchor, resize.is_valid_anchor, "a valid anchor" },
})
Expand Down

0 comments on commit 7e5089f

Please sign in to comment.