Skip to content

Commit

Permalink
fix(fzf): upstream change "" to nil when no selected (#860)
Browse files Browse the repository at this point in the history
Co-authored-by: Will Dean <[email protected]>
  • Loading branch information
phanen and wd60622 authored Feb 16, 2025
1 parent be36f98 commit 29ef428
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions lua/octo/pickers/fzf-lua/previewers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ M.issue = function(formatted_issues)
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()
local entry = formatted_issues[entry_str]

Expand Down Expand Up @@ -113,9 +110,6 @@ M.search = function()
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()
local match = string.gmatch(entry_str, "[^%s]+")
local kind = match()
Expand Down Expand Up @@ -175,9 +169,6 @@ M.commit = function(formatted_commits, repo)
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()
local entry = formatted_commits[entry_str]

Expand Down Expand Up @@ -225,9 +216,6 @@ M.changed_files = function(formatted_files)
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()
local entry = formatted_files[entry_str]

Expand All @@ -254,9 +242,6 @@ M.review_thread = function(formatted_threads)
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()
local entry = formatted_threads[entry_str]

Expand Down Expand Up @@ -287,9 +272,6 @@ M.gist = function(formatted_gists)
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()

local entry = formatted_gists[entry_str]
Expand Down Expand Up @@ -321,9 +303,6 @@ M.repo = function(formatted_repos)
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()
local entry = formatted_repos[entry_str]

Expand Down Expand Up @@ -373,9 +352,6 @@ M.issue_template = function(formatted_templates)
end

function previewer:populate_preview_buf(entry_str)
if entry_str == "" then
return
end
local tmpbuf = self:get_tmp_buffer()
local entry = formatted_templates[entry_str]
local template = entry.template.body
Expand Down

0 comments on commit 29ef428

Please sign in to comment.