From da2a04d0529421e1d59ec9329226e05cccb20944 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Thu, 10 Feb 2022 23:05:23 -0800 Subject: [PATCH] LSP uri jumps to correct column (locations cols|lines are 0-based) --- lua/fzf-lua/path.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/fzf-lua/path.lua b/lua/fzf-lua/path.lua index aa5943b..76f30cd 100644 --- a/lua/fzf-lua/path.lua +++ b/lua/fzf-lua/path.lua @@ -153,7 +153,7 @@ end function M.entry_to_location(entry) local uri, line, col = entry:match("^(.*://.*):(%d+):(%d+):") line = line and tonumber(line-1) or 0 - col = col and tonumber(col) or 1 + col = col and tonumber(col-1) or 0 return { stripped = entry, line = line+1,