Add API for propagating cursor locations #61

Merged
schmelczer merged 30 commits from asch/show-cursors into main 2025-06-08 20:20:53 +01:00
3 changed files with 5 additions and 7 deletions
Showing only changes of commit 3abe028d74 - Show all commits

View file

@ -43,7 +43,6 @@ inefficient_to_string = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
match_on_vec_items = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
needless_borrow = "warn"

View file

@ -62,12 +62,11 @@ where
self.shift -= *deleted_character_count as i64;
self.last_operation = None;
}
} else if let Operation::Insert { .. } = last_operation {
if threshold_index + self.shift - last_operation.len() as i64
} else if let Operation::Insert { .. } = last_operation
&& threshold_index + self.shift - last_operation.len() as i64
> last_operation.end_index() as i64
{
self.last_operation = None;
}
{
schmelczer commented 2025-06-08 20:04:59 +01:00 (Migrated from github.com)

New rust nightly lint

New rust nightly lint
self.last_operation = None;
}
}
}

View file

@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2025-03-14"
channel = "nightly-2025-06-06"
targets = [ "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl" ]
profile = "default"