Add ability to scroll popovers with vim (#12650)

Co-Authored-By: ahmadraheel@gmail.com



Release Notes:

- vim: allow scrolling the currently open information overlay using
`ctrl-{u,d,e,y}`etc. (#11883)
This commit is contained in:
Conrad Irwin 2024-06-05 13:39:17 -06:00 committed by GitHub
parent f3460d440c
commit 428c143fbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 67 additions and 13 deletions

View file

@ -69,6 +69,10 @@ fn scroll_editor(
let should_move_cursor = editor.newest_selection_on_screen(cx).is_eq();
let old_top_anchor = editor.scroll_manager.anchor().anchor;
if editor.scroll_hover(amount, cx) {
return;
}
editor.scroll_screen(amount, cx);
if should_move_cursor {
let visible_rows = if let Some(visible_rows) = editor.visible_line_count() {