summaryrefslogtreecommitdiff
path: root/script/core/rangeformatting.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-06 19:38:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-06 19:38:08 +0800
commit66db6ce02196c381131dc71d2482b24bcef8445e (patch)
treef796a0db10602b6334f95ea0f3c3e1e975258709 /script/core/rangeformatting.lua
parent178d8d9e2cc2a72828e9f187316793e081e4ff12 (diff)
downloadlua-language-server-66db6ce02196c381131dc71d2482b24bcef8445e.zip
fix #1490
Diffstat (limited to 'script/core/rangeformatting.lua')
-rw-r--r--script/core/rangeformatting.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/rangeformatting.lua b/script/core/rangeformatting.lua
index 04a61bd9..d9b4db8a 100644
--- a/script/core/rangeformatting.lua
+++ b/script/core/rangeformatting.lua
@@ -22,7 +22,7 @@ return function(uri, range, options)
return {
{
start = converter.unpackPosition(uri, { line = startLine, character = 0 }),
- finish = converter.unpackPosition(uri, { line = endLine + 1, character = 0 }),
+ finish = converter.unpackPosition(uri, { line = endLine, character = 999999 }),
text = formattedText,
}
}