editor: Keep scrollbar up if there are selections (#2698)
Z-2556 /cc @JosephTLyons Release Notes: - N/A
This commit is contained in:
commit
4125e7eccc
1 changed files with 3 additions and 0 deletions
|
@ -2149,6 +2149,9 @@ impl Element<Editor> for EditorElement {
|
||||||
ShowScrollbar::Auto => {
|
ShowScrollbar::Auto => {
|
||||||
// Git
|
// Git
|
||||||
(is_singleton && scrollbar_settings.git_diff && snapshot.buffer_snapshot.has_git_diffs())
|
(is_singleton && scrollbar_settings.git_diff && snapshot.buffer_snapshot.has_git_diffs())
|
||||||
|
||
|
||||||
|
// Selections
|
||||||
|
(is_singleton && scrollbar_settings.selections && !highlighted_ranges.is_empty())
|
||||||
// Scrollmanager
|
// Scrollmanager
|
||||||
|| editor.scroll_manager.scrollbars_visible()
|
|| editor.scroll_manager.scrollbars_visible()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue