Enforce style lints which do not have violations (#36580)
Release Notes: - N/A
This commit is contained in:
parent
4ee565cd39
commit
6ed29fbc34
20 changed files with 146 additions and 89 deletions
|
@ -106,7 +106,7 @@ impl CursorPosition {
|
|||
cursor_position.selected_count.selections = editor.selections.count();
|
||||
match editor.mode() {
|
||||
editor::EditorMode::AutoHeight { .. }
|
||||
| editor::EditorMode::SingleLine { .. }
|
||||
| editor::EditorMode::SingleLine
|
||||
| editor::EditorMode::Minimap { .. } => {
|
||||
cursor_position.position = None;
|
||||
cursor_position.context = None;
|
||||
|
|
|
@ -157,7 +157,7 @@ impl GoToLine {
|
|||
self.prev_scroll_position.take();
|
||||
cx.emit(DismissEvent)
|
||||
}
|
||||
editor::EditorEvent::BufferEdited { .. } => self.highlight_current_line(cx),
|
||||
editor::EditorEvent::BufferEdited => self.highlight_current_line(cx),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue