Add vim bindings for hover
Allow scrolling in hover popover
This commit is contained in:
parent
67d9abc00f
commit
a6c0ee472c
11 changed files with 1058 additions and 1006 deletions
|
@ -195,6 +195,14 @@ impl SelectionsCollection {
|
|||
resolve(self.newest_anchor(), &self.buffer(cx))
|
||||
}
|
||||
|
||||
pub fn newest_display(&self, cx: &mut MutableAppContext) -> Selection<DisplayPoint> {
|
||||
let display_map = self.display_map(cx);
|
||||
let selection = self
|
||||
.newest_anchor()
|
||||
.map(|point| point.to_display_point(&display_map));
|
||||
selection
|
||||
}
|
||||
|
||||
pub fn oldest_anchor(&self) -> &Selection<Anchor> {
|
||||
self.disjoint
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue