# helix: Add support for line length in reflow command \(\#52152\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f5e56b5ccb3c1c0c538e16654e9c16ac1c1fabb2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f5e56b5ccb3c1c0c538e16654e9c16ac1c1fabb2

Requested commit: f5e56b5ccb3c1c0c538e16654e9c16ac1c1fabb2

Commit: f5e56b5ccb3c1c0c538e16654e9c16ac1c1fabb2

Tree: da283ceaf79bbc5f0835bdb4427cc8f857698607

Author: Dino

Committer: GitHub

## Message

```
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
```

## Parents

- [71667cfcb7a7fdf18ea9c80facb3e56566e1178a](https://git.cafe/gitcafe/zed/commit/71667cfcb7a7fdf18ea9c80facb3e56566e1178a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f5e56b5ccb3c1c0c538e16654e9c16ac1c1fabb2?format=markdown)
