Skip to content

Commit

Permalink
vim: Preserve trailing whitespace in inner text object selections
Browse files Browse the repository at this point in the history
  • Loading branch information
5brian committed Feb 7, 2025
1 parent ed56568 commit 7795640
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions crates/vim/src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1338,15 +1338,6 @@ fn surrounding_markers(
opening.end = range.end
}
}

for (ch, range) in movement::chars_before(map, closing.start) {
if !ch.is_whitespace() {
break;
}
if ch != '\n' {
closing.start = range.start
}
}
}

let result = if around {
Expand Down

0 comments on commit 7795640

Please sign in to comment.