Commit 01b38dc
committed
feat: disable rendering in diff mode
## Details
Issue: #169
Was cut as a question however there was no way to accomplish this before.
The behavior is made global with no way to disable it for now. I can add
one if requested however I don't see that happening as if you are
looking at a diff you probably want to see the underlying text and not a
rendered approximation.
Change is rather small, only adding a check on the `diff` window option
when deciding what the next state of the buffer should be.
We also need to listen to the `DiffUpdated` event so that rendering is
correctly disabled when switching between a diff mode view of the buffer
and a standard view.1 parent 7493db6 commit 01b38dc
File tree
4 files changed
+6
-2
lines changed- lua/render-markdown
- core
4 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments