helix: Add support for line length in reflow command (#52152)
* Add `editor::RewrapOptions::line_length` to, optionally, override the line length used when rewrapping text. * Update `editor::Editor::rewrap_impl` to prefer `editor::RewrapOptions::line_length`, when set. * Add a `line_length` field to the `vim::rewrap::Rewrap` action. * Update the `:reflow` vim command with `vim::command::VimCommand::args` so as to be able to parse the provided argument as `usize`, ensuring that no effect is taken if the argument can't be parsed as such. Release Notes: - N/A
This commit is contained in:
1 parent
dd8f595b5c
commit
c0da60901a
4 files changed
+67
-19
No files matched your search
@@ -2276,6 +2276,7 @@ impl GitPanel {
|
||||
RewrapOptions {
|
||||
override_language_settings: false,
|
||||
preserve_existing_whitespace: true,
|
||||
line_length: None,
|
||||
},
|
||||
cx,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user