Skip to content

Commit

Permalink
Fix adjusting neighbors with a bottom-right anchor
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
MisanthropicBit committed Nov 19, 2024
1 parent f7295a2 commit b5a2289
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/winmove/resize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ function resize.resize_window(win_id, dir, count, anchor)
win_id = vim.fn.winnr(neighbor_dir)
end

if dir == edges[2] then
count = -count
end

resize_func(win_id, count)
resize_func(win_id, (dir == edges[2] and -1 or 1) * count)
adjust_neighbors_in_direction(dir, get_dimension, min_dimension, count, _anchor)
end

Expand Down

0 comments on commit b5a2289

Please sign in to comment.