|
|
@ -963,10 +963,9 @@ impl<T: 'static + Send + Sync, D: 'static + Send + Sync> Picker<T, D> {
|
|
|
|
Direction::Backward => offset.anchor.saturating_sub(preview_scroll_offset.1),
|
|
|
|
Direction::Backward => offset.anchor.saturating_sub(preview_scroll_offset.1),
|
|
|
|
Direction::Forward => offset.anchor.saturating_add(preview_scroll_offset.1),
|
|
|
|
Direction::Forward => offset.anchor.saturating_add(preview_scroll_offset.1),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let syntax_highlights = EditorView::doc_syntax_highlights(
|
|
|
|
let syntax_highlights = EditorView::doc_syntax_highlights(
|
|
|
|
doc,
|
|
|
|
doc,
|
|
|
|
offset.anchor,
|
|
|
|
doc.text().slice(..).line_to_char(offset.vertical_offset),
|
|
|
|
area.height,
|
|
|
|
area.height,
|
|
|
|
&cx.editor.theme,
|
|
|
|
&cx.editor.theme,
|
|
|
|
);
|
|
|
|
);
|
|
|
|