mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
831 stars 33 forks source link

fix: never wrap unless at_edge is set to wrap #171

Closed thenbe closed 4 months ago

thenbe commented 4 months ago

fixes #170


In the future, there might room for further refactoring by collapsing the two consecutive if statements.

-  if multiplexer_moved or not will_wrap then
+  if multiplexer_moved or at_edge ~= AtEdgeBehavior.wrap then
     return multiplexer_moved
   end

This would also mean that will_wrap no longer needs to be passed to this function in the first place.