-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
util.doc_is_open
preforms case sensitive comparisent on windows
#129
Comments
Does replacing Lines 16 to 29 in ed83454
function util.doc_is_open(abs_filename)
-- make path separator consistent
abs_filename = common.normalize_path(abs_filename)
for _, doc in ipairs(core.docs) do
---@cast doc core.doc
if doc.abs_filename == abs_filename then
return true;
end
end
return false
end solve the issue? |
It does solve it. |
Should be fixed with 21faf00. You can test it using |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS: Windows 11
Lite XL version: 2.1.4
Managed to hack it to fix it locally, though the fix was to force the drive letter to uppercase.
When trying to check if the file was open to show diagnostics on it, the lua language server was returning the letter as lowercase, but the opened file in lite XL has an uppercase drive letter. This was causing the comparisent to fail, for seemingly no reason.
Think this is related to #114 as the diagnostics would appear before I hacked it when toggled, as they where shown whenever I turned them off and back on again.
The text was updated successfully, but these errors were encountered: