From f1b5ad2ee92ea9d1656a82fb4dbd0be32cb91ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 7 Jul 2021 19:12:51 +0800 Subject: fix jumping file --- script/files.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3