Skip to content

Commit 272f141

Browse files
committed
generate docs
1 parent d95ef77 commit 272f141

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

book/src/generated/typable-cmd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
| `:show-directory`, `:pwd` | Show the current working directory. |
4545
| `:encoding` | Set encoding. Based on `https://encoding.spec.whatwg.org`. |
4646
| `:reload` | Discard changes and reload from the source file. |
47-
| `:reload-all`, `:ra` | Discard changes and reload all documents from the source file. |
47+
| `:reload-all` | Discard changes and reload all documents from the source files. |
4848
| `:update` | Write changes only if the file has been modified. |
4949
| `:lsp-workspace-command` | Open workspace command picker |
5050
| `:lsp-restart` | Restarts the Language Server that is in use by the current doc |

helix-term/src/commands/typed.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,22 +1046,22 @@ fn reload_all(
10461046
let scrolloff = cx.editor.config().scrolloff;
10471047
let view_id = view!(cx.editor).id;
10481048

1049-
let docs_views: Vec<(DocumentId, Vec<ViewId>)> = cx
1049+
let docs_view_ids: Vec<(DocumentId, Vec<ViewId>)> = cx
10501050
.editor
10511051
.documents_mut()
10521052
.map(|doc| {
1053-
let mut views: Vec<_> = doc.selections().keys().cloned().collect();
1053+
let mut view_ids: Vec<_> = doc.selections().keys().cloned().collect();
10541054

1055-
if views.is_empty() {
1055+
if view_ids.is_empty() {
10561056
doc.ensure_view_init(view_id);
1057-
views = vec![view_id];
1057+
view_ids.push(view_id);
10581058
};
10591059

1060-
(doc.id(), views)
1060+
(doc.id(), view_ids)
10611061
})
10621062
.collect();
10631063

1064-
for (doc_id, view_ids) in docs_views {
1064+
for (doc_id, view_ids) in docs_view_ids {
10651065
let doc = doc_mut!(cx.editor, &doc_id);
10661066

10671067
// Every doc is guaranteed to have at least 1 view at this point.
@@ -2098,7 +2098,7 @@ pub const TYPABLE_COMMAND_LIST: &[TypableCommand] = &[
20982098
TypableCommand {
20992099
name: "reload-all",
21002100
aliases: &[],
2101-
doc: "Discard changes and reload all documents from the source file.",
2101+
doc: "Discard changes and reload all documents from the source files.",
21022102
fun: reload_all,
21032103
completer: None,
21042104
},

0 commit comments

Comments
 (0)