simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 159 forks source link

After executing CodeAction cursor jumps to incorrect split/pane #363

Open PPakalns opened 1 year ago

PPakalns commented 1 year ago

When there are multiple splits open with rust source files and when code action is opened and some action is picked, then cursor doesn't correctly jump back to last position, but it jumps back to last cursor position in top left split.

To fix, cursor should be placed on the split that opened the code action at the last position the cursor was located at before code action window opened.

Shfty commented 1 year ago

I'm seeing this too - quite disruptive for workflows that keep a file browser split open.