diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-09 17:48:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-09 17:48:06 +0800 |
commit | 5b144e314fe6644d6f1c46d630820f295dfd866d (patch) | |
tree | bd738c6a12358bce53a98e4c5bcbc09905a1c9a0 /script/files.lua | |
parent | 13397ffa3c6e5e4b59fb28ebe552cb4ca11efcc7 (diff) | |
download | lua-language-server-5b144e314fe6644d6f1c46d630820f295dfd866d.zip |
type-formating
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/script/files.lua b/script/files.lua index c322bbe8..b085e7fd 100644 --- a/script/files.lua +++ b/script/files.lua @@ -703,12 +703,9 @@ end ---@param offset2 integer function m.range(uri, offset1, offset2) local range = { - start = m.position(uri, offset1, false), + start = m.position(uri, offset1 - 1, false), ['end'] = m.position(uri, offset2, true), } - if range.start.character > 0 then - range.start.character = range.start.character - 1 - end return range end |