Skip to content

Commit aeaa2e7

Browse files
committed
fix: ignore empty doc lines and detail lines
closes #247
1 parent 9bbea5d commit aeaa2e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/windows/lib/docs.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function docs.extract_detail_from_doc(detail_lines, doc_lines)
196196
local doc_str_detail_row = doc_str:find(detail_str, 1, true)
197197

198198
-- didn't find the detail in the doc, so return as is
199-
if doc_str_detail_row == nil then
199+
if doc_str_detail_row == nil or #detail_str == 0 or #doc_str == 0 then
200200
return detail_lines, doc_lines
201201
end
202202

0 commit comments

Comments
 (0)