summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-04-07 17:12:47 -0400
committerGitHub <noreply@github.com>2021-04-07 17:12:47 -0400
commite5fbe6fe60149af8fdeef0d07cba06c029258ba0 (patch)
tree8082f9aa3bc96745d262f85f790bdd5e88fad817 /lua
parentd367eb4fd81bfc6a25374288bdfa1543b1e6deb8 (diff)
fix: Use standardized names for current buffer fuzzy find (#737)
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/builtin/files.lua2
-rw-r--r--lua/telescope/make_entry.lua8
2 files changed, 5 insertions, 5 deletions
diff --git a/lua/telescope/builtin/files.lua b/lua/telescope/builtin/files.lua
index 819d9ae..24d02a0 100644
--- a/lua/telescope/builtin/files.lua
+++ b/lua/telescope/builtin/files.lua
@@ -340,9 +340,9 @@ files.current_buffer_fuzzy_find = function(opts)
for lnum, line in ipairs(lines) do
table.insert(lines_with_numbers, {
lnum = lnum,
- line = line,
bufnr = bufnr,
filename = filename,
+ text = line,
})
end
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index 607b8ea..e970973 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -694,7 +694,7 @@ function make_entry.gen_from_buffer_lines(opts)
return displayer {
{ entry.lnum, opts.lnum_highlight_group or 'TelescopeResultsSpecialComment' },
{
- entry.line, function()
+ entry.text, function()
if not opts.line_highlights then return {} end
local line_hl = opts.line_highlights[entry.lnum] or {}
@@ -713,17 +713,17 @@ function make_entry.gen_from_buffer_lines(opts)
end
return function(entry)
- if opts.skip_empty_lines and string.match(entry.line, '^$') then
+ if opts.skip_empty_lines and string.match(entry.text, '^$') then
return
end
return {
valid = true,
- ordinal = entry.line,
+ ordinal = entry.text,
display = make_display,
filename = entry.filename,
lnum = entry.lnum,
- line = entry.line,
+ text = entry.text,
}
end
end