Skip to content

Is it duplicate code? #114

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

Open
zcsh0721 opened this issue Jan 23, 2024 · 0 comments
Open

Is it duplicate code? #114

zcsh0721 opened this issue Jan 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zcsh0721
Copy link

Description

I'm tyro. I'm currently studying this project.
I found some duplicate code, I'm not sure if it's correct.

To Reproduce

Here are the steps to reproduce the behavior using MINRC:

Expected behavior

What is expected to happen:

Screenshots

image
  • step 1. root has been obtained.
  • step 2. again (All used git rev-parse --show-toplevel)

Can the paths obtained by vim.loop.cwd() and fn.fnamemodify(fn.resolve(fn.expand('%:p')) be different?

step 3. Is the root parameter redundant? string.format has three parameters and only one '%s'

If it's my lack of ability that bothers you, please forgive me

Desktop (please complete the following information):

main branch

@zcsh0721 zcsh0721 added the bug Something isn't working label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant