summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorThomas Otto <th1000s@posteo.net>2020-12-30 21:03:22 +0100
committerThomas Otto <th1000s@posteo.net>2021-10-16 14:07:30 +0200
commitdda6fdb457f347027398b79f5fe4a88cdc02ec0c (patch)
tree196547159946482ddfd44dae39623ca7bd1f6187 /src/main.rs
parentebd008c364bc43cd71ee31a3570a03f6dd80a493 (diff)
Add side-by-side line wrapping
If the current line does not fit into the panel, then it is not truncated but split into multiple lines. A wrapping symbol is placed at the end of the line. If the new line is short enough, it is right-aligned. Wrapping is limited to a certain number of lines (--wrap-max-lines), if this is exceeded the line is truncated by a now highlighted truncation symbol. To disable wrapping set this value to 0.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index a3587341..8b382a34 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,6 +22,8 @@ mod paint;
mod parse_style;
mod plusminus;
mod style;
+mod wrapping;
+
mod subcommands;
mod syntect_color;
mod tests;