Skip to content

🐛 fix: use correct path separators for unique_prefix depending on OS#2

Merged
noib3 merged 1 commit into
willothy:masterfrom
Neelfrost:master
Sep 27, 2021
Merged

🐛 fix: use correct path separators for unique_prefix depending on OS#2
noib3 merged 1 commit into
willothy:masterfrom
Neelfrost:master

Conversation

@Neelfrost

Copy link
Copy Markdown
Contributor

unique_prefix was broken on windows, this fixes it.

Also, should unique_prefix only be returned when the number of buffers > 1?

Great plugin btw. :)

@noib3

noib3 commented Sep 27, 2021

Copy link
Copy Markdown
Collaborator

Thanks for the PR, I was aware of that bug but I had forgot all about it. To make it consisent with the style of the plugin could you rewrite that line as

local path_separator = fn.has('win32') and '\\' or '/'

then I'll merge into master.

Also, should unique_prefix only be returned when the number of buffers > 1?

It definitely should, I'll fix that right now.

@noib3

noib3 commented Sep 27, 2021

Copy link
Copy Markdown
Collaborator

double quotes -> single quotes

@Neelfrost

Copy link
Copy Markdown
Contributor Author

Done.!

It definitely should, I'll fix that right now.

Tysm! :D

@noib3 noib3 merged commit f358e96 into willothy:master Sep 27, 2021
@noib3

noib3 commented Sep 27, 2021

Copy link
Copy Markdown
Collaborator

Also, should unique_prefix only be returned when the number of buffers > 1?

I've pushed a fix to master.

@Neelfrost

Copy link
Copy Markdown
Contributor Author

Much appreciated!

silvercircle added a commit to silvercircle/nvim-cokeline that referenced this pull request Jul 2, 2023
silvercircle added a commit to silvercircle/nvim-cokeline that referenced this pull request Feb 12, 2025
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