Skip to content

Fix: Do not switch to identical file#22

Open
benjiwolff wants to merge 3 commits intojakemason:masterfrom
benjiwolff:fix-do-not-match-on-identical-file
Open

Fix: Do not switch to identical file#22
benjiwolff wants to merge 3 commits intojakemason:masterfrom
benjiwolff:fix-do-not-match-on-identical-file

Conversation

@benjiwolff
Copy link
Copy Markdown

@benjiwolff benjiwolff commented Aug 26, 2025

Fixes #19.

Comment thread lua/ouroboros/init.lua
@@ -1,4 +1,11 @@
local scan = require("plenary.scandir")
local scan = { unpack(require("plenary.scandir")) }
scan.scan_dir = function(...)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plenarys scan dir produces path//filename.extension for me when looking in the same directory as the current file which messes up the equality comparison. This might be a me-problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exact matches scored too high

1 participant