Skip to content

Commit 8df447a

Browse files
committed
fix path search
1 parent 87fb215 commit 8df447a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/dired/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@ Browser.State = {
991991
on_lines = function()
992992
local line = api.nvim_buf_get_text(state.search_buf, 0, 0, 0, -1, {})[1]
993993
local query = line:sub(#(state.abbr_path or state.current_path) + 1)
994+
query = query:gsub('^' .. SEPARATOR, '')
994995

995996
-- Empty query or directory navigation
996997
if query == '' or query:match(SEPARATOR .. '$') then

0 commit comments

Comments
 (0)