Commit 7bf951b
committed
fix: allow sign when both language_icon & language_name are false
## Details
Added some early return logic when handling a code block language based
on the values of `language_icon` & `language_name`. However users might
still want signs in this case and that should be specifically disabled
via the `sign` option. It's unintuitive that disabling the other
`language_*` options results in disabling the `sign` as well.
The fix simply removes the early return. We'll still avoid adding
virtual text as it will end up empty later in the function.1 parent 8ee2701 commit 7bf951b
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 116 | | |
120 | 117 | | |
121 | 118 | | |
| |||
0 commit comments