Skip to content

Commit

Permalink
Rename history delete-item to history remove-item
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Feb 5, 2024
1 parent 3673afe commit 192713d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ fn main() -> reedline::Result<()> {
continue;
}
// Delete history entry of a certain id
if buffer.trim().starts_with("history delete-item") {
if buffer.trim().starts_with("history remove-item") {
let parts: Vec<&str> = buffer.split_whitespace().collect();
if parts.len() == 3 {
if let Ok(id) = parts[2].parse::<i64>() {
line_editor.history_mut().delete(HistoryItemId::new(id))?;
continue;
}
}
println!("Invalid command. Use: history delete <id>");
println!("Invalid command. Use: history remove-item <id>");
continue;
}
// Get this history session identifier
Expand Down

0 comments on commit 192713d

Please sign in to comment.