-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wincmd p unreliable #637
Comments
Interesting. I wasn't aware of the Perhaps we could fix this with "older" syntax? Perhaps we could use the more "standard" |
@mhinz used a conditional version in the experimental commit he prepared for me to test this. Use that function if it exists, else winnr. Maybe that could be way to go? |
That said, the fallback isn't 100% reliable as well, since window numbers can change when new windows open (or close). The reliable way for older versions would be setting a |
Thanks, @mhinz! Is there a good reason not to just use the fall back in all cases? I'm doing that now, and if there is a good reason to use the newer functions if available, then I might add that later. |
Thanks for fixing this! |
No problem. Thanks for reporting the problem :) |
Hm, seems I am back at this situation. Did anything change in the meantime that could influence what is happening here? |
Seems that I am hitting the unreliability @mhinz has explained. Any chance to go to the new API per default? |
Use window IDs to return to the window that is currently being edited after opening the quickfix list if these functions are available. Else, use the previous mechanism of window numbers. This is related to the changes previously discussed in lervag#637.
I think this should be fixed for you through the PR #735. |
Explain the issue
As explained in mhinz/vim-signify#193 I have encountered a jumping cursor when combining fugitive, vimtex and an autocmd to update vim-signify. I could get rid of this issue, by applying the following patch to the vimtex code:
The text was updated successfully, but these errors were encountered: