Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change NewRenderStringWith{out}ScrollTask to reuse the task key of th…
…e existing task This way it won't scroll to the top; we want this when entering the staging panel or the patch building panel by clicking into the view, and also when returning from these views by pressing escape. Note that there's a bug in this latter case: the focused panel still scrolls to the top when hitting escape, we will fix this in the next commit. Change it in the same way for NewRenderStringWithScrollTask, just for consistency, although it's not really necessary there. We use this function only for focusing the merge conflict view, and in that case we already have an empty task key before and after, so it doesn't change anything there.
- Loading branch information