Skip to content

Commit ca963a0

Browse files
jgollenzlevouh
authored andcommitted
fix(conceal): Handle links without an alias and not at end of line
1 parent 1b0f6ae commit ca963a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/org/indent.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ local function foldtext()
9898
end
9999

100100
if vim.opt.conceallevel:get() > 0 then
101-
line = string.gsub(line, '%[%[(.-)%]%[?(.-)%]%]$', function(link, text)
101+
line = string.gsub(line, '%[%[(.-)%]%[?(.-)%]?%]', function(link, text)
102102
if text == '' then
103103
return link
104104
else

0 commit comments

Comments
 (0)