From 543693ecd83ba0d5659538e0a4f52efa020f7f91 Mon Sep 17 00:00:00 2001 From: luozhiya Date: Sun, 19 May 2024 12:50:15 +0800 Subject: [PATCH] Match '```' prefix --- lua/fittencode/views/chat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/fittencode/views/chat.lua b/lua/fittencode/views/chat.lua index bea77173..5377e1e0 100644 --- a/lua/fittencode/views/chat.lua +++ b/lua/fittencode/views/chat.lua @@ -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)