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:
parent
f3460d440c
commit
428c143fbb
5 changed files with 67 additions and 13 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue