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: foo should be printed
ACTUAL: foo is not printed
Cause
Because we are returning early:
|
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:
Versions
nvim v0.10.0
kitty 0.35.1
Steps to Reproduce
opts.at_edgeis not called whenfloat_win_behavior = 'mux'Minimal Reproduction
{ float_win_behavior = 'mux', at_edge = function(context) print('foo') end, }move_cursor_right().EXPECTED:
fooshould be printedACTUAL:
foois not printedCause
Because we are returning early:
smart-splits.nvim/lua/smart-splits/api.lua
Lines 359 to 363 in 9a6cd46
We never reach the point where
at_edge()is called:smart-splits.nvim/lua/smart-splits/api.lua
Line 393 in 9a6cd46
Versions