Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
tessus committed May 31, 2024
1 parent 6b0b51d commit b7c8098
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/atuin/src/command/client/search/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,15 +742,7 @@ impl State {
let extra_width = UnicodeWidthStr::width(self.search.input.substring());

let compact_cursor_offset = if compact { 0 } else { 1 };
let invert_cursor_offset = if compact {
0
} else {
if invert {
0
} else {
1
}
};
let invert_cursor_offset = if !invert && !compact { 1 } else { 0 };
f.set_cursor(
// Put cursor past the end of the input text
input_chunk.x + extra_width as u16 + PREFIX_LENGTH + 1 + compact_cursor_offset,
Expand Down

0 comments on commit b7c8098

Please sign in to comment.