mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 21:27:56 -05:00
Previously it would just make sure the selection was visible, so if the symbol was already visible, no scrolling/centering would take place. For most actions we want to minimize scrolling since it makes it easier to keep track of the location in the document, but for the “Go to …” actions, we’re doing an absolute positioning rather than a relative jump, so it makes sense to always center. For bookmarks, it’s only when choosing a specific bookmark from the Navigation menu that we center selection, not when using the next/previous bookmark actions.