Skip to content

Commit

Permalink
fix: default should_nest
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Aug 10, 2023
1 parent 86deabc commit 11f9960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/flatten/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function M.default_should_nest(host)
return false
end

return host_cwd ~= vim.fn.getcwd(-1)
return not vim.startswith(vim.fn.getcwd(-1), host_cwd)
end

-- selene: allow(unused_variable)
Expand Down

0 comments on commit 11f9960

Please sign in to comment.