summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md1
-rw-r--r--script/provider/provider.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md
index 9f73473c..9d2ee696 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,7 @@
# changelog
## 1.16.1
+* `FIX` signature: parameters may be misplaced
* `FIX` runtime errors
## 1.16.0
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 04d1b4e6..3fe7e691 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -564,7 +564,7 @@ proto.on('textDocument/signatureHelp', function (params)
end
await.close('signatureHelp')
await.setID('signatureHelp')
- local offset = files.offsetOfWord(uri, params.position)
+ local offset = files.offset(uri, params.position)
local core = require 'core.signature'
local results = core(uri, offset - 1)
if not results then