diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-07 19:12:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-07 19:12:51 +0800 |
commit | f1b5ad2ee92ea9d1656a82fb4dbd0be32cb91ea8 (patch) | |
tree | 4778426938f68ff3789707a93080230227fae839 | |
parent | 8d6d7b1a8c4474f3331d6445031c1a4bad267e06 (diff) | |
download | lua-language-server-f1b5ad2ee92ea9d1656a82fb4dbd0be32cb91ea8.zip |
fix jumping file
-rw-r--r-- | script/files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua index 8fbad7c0..c42ed624 100644 --- a/script/files.lua +++ b/script/files.lua @@ -702,7 +702,7 @@ function m.position(uri, offset, leftOrRight) if row < 1 then row = 1 end - if leftOrRight == 'left' then + if leftOrRight == 'left' and ucol > 0 then ucol = ucol - 1 end return { |