Skip to content

Commit

Permalink
Fixed conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Wright committed Nov 12, 2024
1 parent f1d7fa1 commit ba310d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit_mode/vi/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ fn bracket_for(c: &char) -> char {
}

pub(crate) fn is_valid_change_inside(c: &char) -> bool {
*c == 'w' && is_valid_change_inside_left(c) && is_valid_change_inside_right(c)
*c == 'w' || is_valid_change_inside_left(c) || is_valid_change_inside_right(c)
}

pub(crate) fn is_valid_change_inside_left(c: &char) -> bool {
Expand Down

0 comments on commit ba310d6

Please sign in to comment.