Skip to content

Commit e41b000

Browse files
authored
fix(coq): use last char before cursor instead of last on line (#259)
1 parent 198d003 commit e41b000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/render-markdown/integ/coq.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ local function complete(args, callback)
2222
if not source.enabled() then
2323
return nil
2424
end
25-
local character = args.line:sub(#args.line, #args.line)
25+
local character = args.line:sub(args.pos[2], args.pos[2])
2626
if not vim.tbl_contains(source.trigger_characters(), character) then
2727
return nil
2828
end

0 commit comments

Comments
 (0)