diff options
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
