summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-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,
}
}