summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-21 18:29:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-21 18:29:57 +0800
commit320680b3529d2d4be84c13ac5ca6d728c6c5621c (patch)
tree5f158aca0c4d1d37ffbbbe7beb355800a17eb706 /server/src
parent8f5725af96853b31afe6473b741e0b918b4a0210 (diff)
downloadlua-language-server-320680b3529d2d4be84c13ac5ca6d728c6c5621c.zip
修正有时会提前关闭参数提示的BUG
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/signature.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/matcher/signature.lua b/server/src/matcher/signature.lua
index 413e305c..c62117fc 100644
--- a/server/src/matcher/signature.lua
+++ b/server/src/matcher/signature.lua
@@ -1,7 +1,7 @@
local hover = require 'matcher.hover'
local function isContainPos(obj, pos)
- if obj.start <= pos and obj.finish >= pos then
+ if obj.start <= pos and obj.finish + 1 >= pos then
return true
end
return false