mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
chore: ensure lockfile up-to-date (#812)
* chore: ensure lockfile up-to-date Signed-off-by: tison <wander4096@gmail.com> * fixup clippy warnings Signed-off-by: tison <wander4096@gmail.com> * fixup gha syntax Signed-off-by: tison <wander4096@gmail.com> --------- Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
parent
919292e40f
commit
e064b64519
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -49,5 +49,8 @@ jobs:
|
||||
- name: Tests
|
||||
run: cargo llvm-cov nextest --all ${{ matrix.flags }} --lcov --output-path lcov.info
|
||||
|
||||
- name: Check lockfile
|
||||
run: cargo check --locked ${{ matrix.flags }} --all-targets --all
|
||||
|
||||
- name: Doctests
|
||||
run: cargo test --doc ${{ matrix.flags }}
|
||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -684,7 +684,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "reedline"
|
||||
version = "0.32.0"
|
||||
version = "0.33.0"
|
||||
dependencies = [
|
||||
"arboard",
|
||||
"chrono",
|
||||
|
@ -1658,10 +1658,10 @@ impl Reedline {
|
||||
match &mut self.buffer_editor {
|
||||
Some(BufferEditor {
|
||||
ref mut command,
|
||||
temp_file,
|
||||
ref temp_file,
|
||||
}) => {
|
||||
{
|
||||
let mut file = File::create(&temp_file)?;
|
||||
let mut file = File::create(temp_file)?;
|
||||
write!(file, "{}", self.editor.get_buffer())?;
|
||||
}
|
||||
{
|
||||
|
@ -1054,10 +1054,7 @@ fn truncate_string_list(list: &mut [String], truncation_chars: &str) {
|
||||
let mut new_line = String::new();
|
||||
for grapheme in chars.into_iter().rev() {
|
||||
if to_replace > 0 {
|
||||
new_line.insert_str(
|
||||
0,
|
||||
&truncation_chars[truncation_len - to_replace].to_string(),
|
||||
);
|
||||
new_line.insert(0, truncation_chars[truncation_len - to_replace]);
|
||||
to_replace -= 1;
|
||||
} else {
|
||||
new_line.insert_str(0, grapheme);
|
||||
|
Loading…
Reference in New Issue
Block a user