Merge pull request #122 from epheien/fix-markdown

fix: incorrect character of range and selectionRange
This commit is contained in:
~hedy
2025-02-05 09:26:07 +08:00
committed by GitHub

View File

@@ -94,12 +94,12 @@ function M.handle_markdown()
kind = 15,
name = title,
selectionRange = {
start = { character = 1, line = line - 1 },
['end'] = { character = 1, line = line - 1 },
start = { character = 0, line = line - 1 },
['end'] = { character = 0, line = line - 1 },
},
range = {
start = { character = 1, line = line - 1 },
['end'] = { character = 1, line = line - 1 },
start = { character = 0, line = line - 1 },
['end'] = { character = 0, line = line - 1 },
},
children = {},
}