-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Steps to Reproduce
opts.at_edge is not called when float_win_behavior = 'mux'
Minimal Reproduction
{
float_win_behavior = 'mux',
at_edge = function(context)
print('foo')
end,
}- Use the previous config.
- Open a floating window.
- Invoke the keymap that corresponds to
move_cursor_right(). - .
EXPECTED:fooshould be printed
ACTUAL:foois not printed
Cause
Because we are returning early:
smart-splits.nvim/lua/smart-splits/api.lua
Lines 359 to 363 in 9a6cd46
| if handle_floating_window(function() | |
| mux.move_pane(direction, true, at_edge) | |
| end) then | |
| return | |
| end |
We never reach the point where at_edge() is called:
smart-splits.nvim/lua/smart-splits/api.lua
Line 393 in 9a6cd46
| at_edge(ctx) |
Versions
nvim v0.10.0
kitty 0.35.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working