diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-15 16:11:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-15 16:11:30 +0800 |
commit | 8880b7d63931469c0b7bfb69004f342236ce2811 (patch) | |
tree | b9577858f20755d593ecf08dad5e2cd5e46559db /script/parser/guide.lua | |
parent | 6fddbbf0b34729327670ac1687d88b38739e12a9 (diff) | |
download | lua-language-server-8880b7d63931469c0b7bfb69004f342236ce2811.zip |
cleanup
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r-- | script/parser/guide.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 941fc7b1..14e19094 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -743,7 +743,7 @@ end ---@param position integer ---@return integer row ---@return integer col -function m.positionOf(position) +function m.rowColOf(position) return position // 10000, position % 10000 end @@ -753,7 +753,7 @@ end ---@param row integer ---@param col integer ---@return integer -function m.offsetOf(row, col) +function m.positionOf(row, col) return row * 10000 + col end |