Skip to content

Commit

Permalink
Match '```' prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed May 19, 2024
1 parent ac4e178 commit 543693e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/fittencode/views/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function M:commit(text, linebreak, force)
return
end
vim.tbl_map(function(x)
if x == '```' then
if x:match('^```') then
push_stack(x)
end
end, lines)
Expand Down

0 comments on commit 543693e

Please sign in to comment.