We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a2a42 commit ae05b8cCopy full SHA for ae05b8c
lua/dashboard/theme/hyper.lua
@@ -175,10 +175,12 @@ local function mru_list(config)
175
176
if config.mru.cwd_only then
177
local cwd = uv.cwd()
178
+ local sep = utils.is_win and '\\' or '/'
179
+ local cwd_with_sep = cwd .. sep
180
mlist = vim.tbl_filter(function(file)
- local file_dir = vim.fn.fnamemodify(file, ':p:h')
181
+ local file_dir = vim.fn.fnamemodify(file, ':p:h') .. sep
182
if file_dir and cwd then
- return file_dir:find(cwd, 1, true) == 1
183
+ return file_dir:sub(1, #cwd_with_sep) == cwd_with_sep
184
end
185
end, mlist)
186
0 commit comments