Merge pull request #6 from py2048/main

Fix hidden files bug
This commit is contained in:
hrsh7th 2021-09-12 01:36:03 +09:00 committed by GitHub
commit 0016221b61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ source._candidates = function(_, params, dirname, offset, callback)
local items = {}
local include_hidden = string.sub(params.context.cursor_before_line, offset + 1, offset + 1) == '.'
local include_hidden = string.sub(params.context.cursor_before_line, offset, offset) == '.'
while true do
local name, type, e = vim.loop.fs_scandir_next(fs)
if e then