From 1891a51ed2b64eec3964d3af3807be90d08a14c2 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 5 Aug 2026 15:57:48 -0300 Subject: soft-wrap long lines behind a toggle --- src/builtins.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/builtins.zig') diff --git a/src/builtins.zig b/src/builtins.zig index 9bd955bd..aaeab5fa 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -181,6 +181,16 @@ pub const Colors = struct { } }; +/// Soft wrap: a file line too long for the pane renders across several body +/// rows instead of running off the right edge. Global like Colors, and off by +/// default for the same reason — it changes what every file pane looks like, +/// so it is a switch you flip once rather than something a pane carries. +pub const Wrap = struct { + pub fn run(c: Ctx) void { + c.p.wrap_on = !c.p.wrap_on; + } +}; + /// One step along the ring. With 228 themes in it this is no longer a way to /// REACH a theme — ThemeSel is — but it is still the way to browse one, and the /// browse got better rather than worse: the generated half is sorted by name, so -- cgit v1.3