Skip to content

Commit 3d323d1

Browse files
committed
Fix check if message is copilot message
1 parent b3df3db commit 3d323d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/CopilotChat/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function M.open(config)
195195
local input, start_line, end_line, line_count =
196196
find_lines_between_separator_at_cursor(state.chat.bufnr, M.config.separator)
197197
if
198-
input ~= '' and not not vim.startswith(vim.trim(input), '**' .. M.config.name .. ':** ')
198+
input ~= '' and not vim.startswith(vim.trim(input), '**' .. M.config.name .. ':** ')
199199
then
200200
-- If we are entering the input at the end, replace it
201201
if line_count == end_line then

0 commit comments

Comments
 (0)