Sublime Forum

Git stash/git stash pop causes top to cursor to be selected unless top of file is visible

#1

If I run git stash or git stash pop, which causes a file I have loaded to be reloaded, the selection ends up being set from the top of the file to my current cursor position.

That is, unless the top of the file is currently visible on the screen.

This has been driving me crazy for quite a while unfortunately, but I have always assumed it was a bug in a rather ambitious and busy plugin I wrote and use called Emacs Pro Essentials.

However, I just verified it happens in safe mode.

I am on stable channel build 4200.

Anyone else seen this?

0 Likes

#2

0 Likes

#3

A possible workaround would be to re-focus ST by clicking onto the title bar, first.

Nevertheless that’s probably worth a bug report at https://github.com/sublimehq/sublime_text/issues.

0 Likes

#4

Ugh - trying to post a bug report and I cannot reproduce it. So it must have some other trigger than just the simple explanation I had, e.g., maybe the changes have to be large enough to trigger the issue.

Weill keep working on this and then generate the big report.

0 Likes

#5

Maybe related with click through functionality ("click_through": "always").

I can pretty easily reproduce it on my Windows machine by just stashing and popping stashes via SM and clicking right into the edit control after each external operation.

0 Likes