chore: Bump Rust version to 1.86 (#28021)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
7492ec3f67
commit
c6e2d20a02
17 changed files with 24 additions and 23 deletions
|
@ -2174,7 +2174,7 @@ fn matching(map: &DisplaySnapshot, display_point: DisplayPoint) -> DisplayPoint
|
|||
// https://neovim.io/doc/user/motion.html#N%25
|
||||
fn go_to_percentage(map: &DisplaySnapshot, point: DisplayPoint, count: usize) -> DisplayPoint {
|
||||
let total_lines = map.buffer_snapshot.max_point().row + 1;
|
||||
let target_line = (count * total_lines as usize + 99) / 100;
|
||||
let target_line = (count * total_lines as usize).div_ceil(100);
|
||||
let target_point = DisplayPoint::new(
|
||||
DisplayRow(target_line.saturating_sub(1) as u32),
|
||||
point.column(),
|
||||
|
|
|
@ -147,7 +147,7 @@ impl NeovimBackedTestContext {
|
|||
.name()
|
||||
.expect("thread is not named")
|
||||
.split(':')
|
||||
.last()
|
||||
.next_back()
|
||||
.unwrap()
|
||||
.to_string();
|
||||
Self {
|
||||
|
@ -171,7 +171,7 @@ impl NeovimBackedTestContext {
|
|||
.name()
|
||||
.expect("thread is not named")
|
||||
.split(':')
|
||||
.last()
|
||||
.next_back()
|
||||
.unwrap()
|
||||
.to_string();
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue