mirror of https://github.com/helix-editor/helix
fix: address clippy warning about match single binding
parent
395371db51
commit
5af123a4d9
|
@ -1588,8 +1588,7 @@ impl Component for EditorView {
|
|||
}
|
||||
|
||||
fn cursor(&self, _area: Rect, editor: &Editor) -> (Option<Position>, CursorKind) {
|
||||
match editor.cursor() {
|
||||
(pos, kind) => {
|
||||
let (pos, kind) = editor.cursor();
|
||||
if self.terminal_focused {
|
||||
(pos, kind)
|
||||
} else {
|
||||
|
@ -1597,8 +1596,6 @@ impl Component for EditorView {
|
|||
(pos, CursorKind::Underline)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn canonicalize_key(key: &mut KeyEvent) {
|
||||
|
|
Loading…
Reference in New Issue