summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig
index f8a3767b..b7ca9b11 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -120,6 +120,7 @@ pub const leader_path = paths: {
.Delcol = "cd",
.Debug = "td",
.Colors = "tc",
+ .Wrap = "tw",
.NextColor = "tn",
.Crt = "tr",
// the theme picker joins the toggles it belongs with; `Theme` itself takes
@@ -431,6 +432,11 @@ test "wheel drift guard" {
/// the file pane's line-number gutter, in columns
pub const PREFIX_W: u16 = 5;
+/// soft wrap (the Wrap builtin): the widest a wrapped row may get. The rule is
+/// min(this, the pane's own content width), so a narrow pane breaks at its own
+/// right edge and a wide one stops here — a line dragged across a 300-column
+/// monitor is not readable text, it is a scanline.
+pub const WRAP_COLS: usize = 100;
/// vim 'scrolloff': keyboard cursor moves keep this many context rows visible
/// above/below the cursor (clamped at file boundaries and short panes), and
/// the same count of COLUMNS horizontally