Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Feb 2, 2025
2 parents 06a1935 + 6369400 commit 58bdb0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sush"
version = "2025.3.1"
version = "2025.4.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
8 changes: 4 additions & 4 deletions src/utils/glob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ fn eat_string(pattern: &mut String, ans: &mut Vec<GlobElem>) -> bool {
}

fn consume(remaining: &mut String, cutpos: usize) -> String {
let cut = remaining[0..cutpos].to_string();
*remaining = remaining.split_off(cutpos);

cut
let back = remaining.split_off(cutpos);
let front = remaining.clone();
*remaining = back;
front
}

0 comments on commit 58bdb0c

Please sign in to comment.