diff options
-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 { |