Fix ambiguous variable name in window_management.lua

This commit is contained in:
Martin Larsson 2024-07-16 11:05:43 +02:00
parent 284dca7daf
commit 8356ff0018

View file

@ -119,12 +119,12 @@ local function resize_window(window, dir_char)
assert(window, "Invalid window")
assert(dir_char == "h" or dir_char == "j" or dir_char == "k" or dir_char == "l", "Invalid direction character")
local function can_resize_window(window)
if not window then
local function can_resize_window(win)
if not win then
return true
end
if is_floating_window(window) then
if is_floating_window(win) then
return true
end