Commit db7f044
authored
fix(template): expandable variables in lua expr (#841)
This fixes the order which the template is compiled. Previously, the
expressions %() were compiled before expandable variables (such as %x).
This made the example template in [1] to produce:
* [[url][x]]
instead of
* [[url][end part of the url]]
By doing the expression compilation after expandable ones, this issue is
resolved.
[1] https://github.com/nvim-orgmode/orgmode/wiki/Getting-Started#captures1 parent 07c479c commit db7f044
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
| |||
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
0 commit comments