From 4ecf494b3af0ec8d8212dd9614b7e7d329a2251f Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 5 Aug 2026 18:02:16 -0300 Subject: wrap by default, at the window width, with a break marker --- src/config.zig | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index b7ca9b11..a8e3639f 100644 --- a/src/config.zig +++ b/src/config.zig @@ -432,11 +432,13 @@ 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; +/// soft wrap (the Wrap builtin): the glyph a wrapped row ends with, in the one +/// column bodyText keeps free for it. A break is the one thing about a wrapped +/// line you cannot see — the text simply continues, and a missing line number +/// on the row below is an absence, which is a poor thing to read a document by. +/// So the break says so at the point it happens, in the chrome's own colour +/// because it is not in the file. +pub const wrap_marker = "↩"; /// 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 -- cgit v1.3