Skip to content

Commit 014c9db

Browse files
committed
misc
1 parent 4afe4fe commit 014c9db

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/history-bookmark.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ options.read_options(o, _, function() end)
3636
o.excluded_dir = utils.parse_json(o.excluded_dir)
3737
o.included_dir = utils.parse_json(o.included_dir)
3838

39-
local cwd_root = utils.getcwd()
40-
4139
-- `pl` stands for playlist
4240
local path = nil
4341
local dir = nil
@@ -62,7 +60,7 @@ elseif o.history_dir:find('^/:dir%%script%%') then
6260
elseif o.history_dir:find('/:var%%(.*)%%') then
6361
local os_variable = o.history_dir:match('/:var%%(.*)%%')
6462
history_dir = o.history_dir:gsub('/:var%%(.*)%%', os.getenv(os_variable))
65-
elseif o.history_dir:find('^~') then
63+
else
6664
history_dir = mp.command_native({ "expand-path", o.history_dir }) -- Expands both ~ and ~~
6765
end
6866

0 commit comments

Comments
 (0)