Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Jan 5, 2024
1 parent bbc1479 commit caa906b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions book/src/generated/typable-cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@
| `:clear-register` | Clear given register. If no argument is provided, clear all registers. |
| `:redraw` | Clear and re-render the whole UI |
| `:move` | Move the current buffer and its corresponding file to a different path |
| `:history-reload` | Prepends undofile history to current history. |
| `:delete-undofile` | Delete undofile associated with the currently focused document |
4 changes: 1 addition & 3 deletions helix-core/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,7 @@ impl ChangeSet {
debug_assert!(old_pos <= **pos, "Reverse Iter across changeset works");
continue 'outer;
}
let Some(new_pos) = $map(**pos, *assoc) else {
break;
};
let Some(new_pos) = $map(**pos, *assoc) else { break; };
**pos = new_pos;
positions.next();
}
Expand Down
2 changes: 1 addition & 1 deletion helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3125,7 +3125,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
// Not named reload-history so people don't accidentally call delete-undofile
name: "history-reload",
aliases: &[],
doc: "Reload the history for the buffer from its corresponding undofile",
doc: "Prepends undofile history to current history.",
fun: reload_undofile,
signature: CommandSignature::none(),
},
Expand Down

0 comments on commit caa906b

Please sign in to comment.