Skip to content

Commit

Permalink
Merge pull request #171 from thenbe/dont-wrap
Browse files Browse the repository at this point in the history
fix: never wrap unless at_edge is set to wrap
  • Loading branch information
mrjones2014 authored Mar 28, 2024
2 parents cd59333 + c997eee commit a0d40cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/smart-splits/mux/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ function M.move_pane(direction, will_wrap, at_edge)
return multiplexer_moved
end

return move_multiplexer_inner(directions_reverse[direction], multiplexer)
if at_edge == AtEdgeBehavior.wrap then
return move_multiplexer_inner(directions_reverse[direction], multiplexer)
end

return false
end

---Try resizing with multiplexer
Expand Down

0 comments on commit a0d40cb

Please sign in to comment.