summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2020-11-26 08:16:58 +0100
committerGitHub <noreply@github.com>2020-11-26 08:16:58 +0100
commit4a8ea7763ec3c1c0672398418da682c1e0d4017d (patch)
tree916242a10f9b2c67e6f8e8b3a2604df073a19871 /lua/telescope/make_entry.lua
parent0f9fd84a9742e22294cfaf46f32bad9b29de0b31 (diff)
Refactor builtin (#287)
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 fc8b569..2a4ae5c 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -329,7 +329,7 @@ function make_entry.gen_from_buffer(opts)
bufnr = entry.bufnr,
filename = bufname,
- lnum = entry.info.lnum or 1,
+ lnum = entry.info.lnum and entry.info.lnum or 1,
indicator = indicator,
}
end