Skip to content

Commit d556c31

Browse files
committed
tweaks
1 parent ddd9c2e commit d556c31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/forester/pickers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ local pick_by_title = function(trees, opts)
5454

5555
local make_display = function(item) -- NOTE: item is the table returned by entry_maker
5656
local title
57-
if item.title == vim.NIL then
57+
if item.title == vim.NIL or item.title == nil then
5858
do
5959
title = "<untitled>"
6060
end

lua/forester/ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ local filter_map = require("forester.util").filter_map
66
local M = {}
77

88
local function create_title_cache()
9-
local success, trees = pcall(Forester.query_all, vim.g.forester_current_config)
9+
local success, trees = pcall(forester.query_all, vim.g.forester_current_config)
1010
if success then
1111
return filter_map(trees, function(tree)
1212
if tree.title ~= "" then

0 commit comments

Comments
 (0)