Closed krishnakumarg1984 closed 2 years ago
Can you try each commit and help figure out which commit introduced the regression?
It's hard to hunt this down, I've checked the commits and what I can tell is that this has probably not to do with the commits or even the plugin at all.
It is only reproducible having winfixwidth
set. And then this bug also happens using a simpler Smart resizing function instead of the plugin like this one:
vim.cmd [[
fun! SmartResize()
if winnr() == winnr('$')
nnoremap <silent> <C-Right> :vertical resize -2<CR>
nnoremap <silent> <C-Left> :vertical resize +2<CR>
else
nnoremap <silent> <C-Right> :vertical resize +2<CR>
nnoremap <silent> <C-Left> :vertical resize -2<CR>
endif
endfun
]]
I don't think there's really anything we can do about this situation then, other than just say it doesn't work if you use winfixwidth
Looks like a regression of #16, GitHub didn't allow me to reopen that issue, so I shall repeat the issue here again for the sake of completeness.