Skip to content

Commit

Permalink
Improve out format
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed May 18, 2024
1 parent 49cf485 commit b79f666
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 @@ -80,7 +80,7 @@ function M:commit(text, linebreak)
return
end
if linebreak and #self.text > 0 and #lines > 0 then
if lines[1] ~= '' and self.text[#self.text] ~= '' then
if lines[1] ~= '' and not string.match(lines[1], '^```') and self.text[#self.text] ~= '' and not string.match(self.text[#self.text], '^```') then
table.insert(lines, 1, '')
end
end
Expand Down

0 comments on commit b79f666

Please sign in to comment.