summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-01-03 20:27:23 +0100
committerGitHub <noreply@github.com>2021-01-03 20:27:23 +0100
commit4691863f4358857a02d3b78049453f7a3abdfac9 (patch)
treea809ecd6fea4e5bf70144d9bace275d0be348c7c /lua/telescope/make_entry.lua
parent88ebcaab10681e9b12bbf1c38719ae3d48d81f4d (diff)
fix: termopen previewer for powershell (#382)
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index d653f9e..188a54d 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -532,7 +532,7 @@ function make_entry.gen_from_treesitter(opts)
local make_display = function(entry)
local msg = vim.api.nvim_buf_get_lines(
bufnr,
- entry.lnum - 1,
+ entry.lnum,
entry.lnum,
false
)[1] or ''