chore: clean up formatting and lint
This commit is contained in:
parent
d7b82fad91
commit
1398716508
8 changed files with 164 additions and 184 deletions
|
|
@ -25,6 +25,7 @@ fn editor_text(editor: &ViEditor<'static, 'static>) -> String {
|
|||
})
|
||||
}
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum Tab {
|
||||
Editor(EditorTab),
|
||||
GitDiff(GitDiffTab),
|
||||
|
|
@ -313,7 +314,7 @@ impl EditorTab {
|
|||
.filter_map(|m| {
|
||||
if cursor.line != start_line
|
||||
|| m.start() >= cursor.index
|
||||
|| m.start() < cursor.index && wrapped == true
|
||||
|| m.start() < cursor.index && wrapped
|
||||
{
|
||||
Some((m.start(), m.len()))
|
||||
} else {
|
||||
|
|
@ -390,7 +391,7 @@ impl EditorTab {
|
|||
if cursor.line != start_line
|
||||
|| m.start() > cursor.index
|
||||
|| m.start() == cursor.index && current_selection == Selection::None
|
||||
|| m.start() < cursor.index && wrapped == true
|
||||
|| m.start() < cursor.index && wrapped
|
||||
{
|
||||
Some((m.start(), m.end()))
|
||||
} else {
|
||||
|
|
@ -433,7 +434,7 @@ impl EditorTab {
|
|||
if cursor.line != start_line
|
||||
|| m.start() < cursor.index
|
||||
|| m.start() == cursor.index && current_selection == Selection::None
|
||||
|| m.start() > cursor.index && wrapped == true
|
||||
|| m.start() > cursor.index && wrapped
|
||||
{
|
||||
Some((m.start(), m.end()))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue