summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-10-27 08:30:50 -0400
committerDan Davison <dandavison7@gmail.com>2021-10-27 08:32:06 -0400
commit081eb60299a0f75670f8397e58ed6c05417747b4 (patch)
tree96473e6c3b1a5a92ab10aebb8ba7f93dbabc68a6
parent71f0568f9f60fc421c729cebe84f366e2af532e4 (diff)
Add screenshot of side-by-side with wrapping
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 44ac6f46..1ff62184 100644
--- a/README.md
+++ b/README.md
@@ -391,6 +391,11 @@ To disable the line numbers in side-by-side view, but keep a vertical delimiter
```
Long lines are wrapped if they do not fit in side-by-side mode.
+In the image below, the long deleted line in the left panel overflows by a small amount, and the wrapped content is right-aligned in the next line.
+In contrast, the long replacement line in the right panel overflows by almost an entire line, and so the wrapped content is left aligned in the next line. The arrow markers and ellipsis explain when and how text has been wrapped.
+
+<table><tr><td><img width=600px src="https://user-images.githubusercontent.com/52205/139064537-f8479504-16d3-429a-b4f6-d0122438adaa.png" alt="image" /></td></tr></table>
+
For control over the details of line wrapping, see `--wrap-max-lines`, `--wrap-left-symbol`, `--wrap-right-symbol`, `--wrap-right-percent`, `--wrap-right-prefix-symbol`, `--inline-hint-style`.
Line wrapping was implemented by @th1000s.