Skip to content
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

fix(#820): Illegal character in filename #1147

Merged
merged 3 commits into from
Dec 26, 2023
Merged

fix(#820): Illegal character in filename #1147

merged 3 commits into from
Dec 26, 2023

Conversation

joaomsa
Copy link
Contributor

@joaomsa joaomsa commented Nov 17, 2023

Also ran into this issue with the jdt:// URLs, as reported in #820. Instead of using JDT-specific workarounds like #1030 and #821, let's fix the root cause.

Given a directory structure like %dir1/%dir2/%actual_%file', the shortening process should eliminate the % escaping. It currently shortens it to %/%/%%actual_%%file' instead of the correct '%%/%%/%%actual_%%file'. The unescaped %/ is an illegal char sequence.

To address this, it would make sense to run the escaping after shortening has been completed.

@shadmansaleh
Copy link
Member

lgtm, thanks for your contribution.

@shadmansaleh shadmansaleh merged commit 566b703 into nvim-lualine:master Dec 26, 2023
@joaomsa joaomsa deleted the fix-path-escaping branch February 21, 2024 21:30
craigmac pushed a commit to craigmac/lualine.nvim that referenced this pull request May 15, 2024
* fix(nvim-lualine#820): handle % in path

* fix merge issues

---------

merged alongside f76d9b6

Co-authored-by: Shadman <[email protected]>
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.

2 participants