summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/files.lua2
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 {