Closed TxHawks closed 1 year ago
I tried on 0.8.3, 0.8.0, and nightly, and could not reproduce the issue.
Can you try to reproduce with no other plugins installed and provide a minimal init.lua
that can be used like nvim -nu ./init.lua
? Use this template: https://github.com/mrjones2014/smart-splits.nvim/discussions/72
Closing as no minimal init.lua
has been provided. Reopen with a minimal init.lua
if the issue persists.
Describe the bug Say we have two splits, one with
BufferA
, which has 200 lines, and another withBufferB
, which has 30 lines. If my cursor is on a line greater than 30, say 35 inBufferA
, and I switch to the split that hasBufferB
usingrequire("smart-splits").swap_buf_*()
, it will switch to the second split, and try and move the cursor to line 35 ofBufferB
and then try to adjust line by line, which doesn't exist, which results in the following errors:Expected behavior To directly jump to the last line of the file, but I'd actually be happy if there was a configuration option to not adjust the line in the split I'm moving to so that the cursor stays where it last was
Version Info (please complete the following information):
Minimal init.lua The config options I use to setup smart-splits are: