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
Refactor quickfixsigns#vcsdiff#GetList #65
Conversation
Previously calling `quickfixsigns#vcsdiff#GetList()` would not set the cache. Also add a `quickfixsigns#vcsdiff#ClearCache()` API.
endif | ||
return b:qfs_vcsdiff_list | ||
endf | ||
|
||
|
||
function! quickfixsigns#vcsdiff#ClearCache() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to have support for an optional bufnr
argument here, but it looks like you cannot easily (without bufdo
or b
) unset a buffer-local variable for another buffer?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in a5d0802.
I think the caching for the string could be removed?!
This uses a sentinel to allow for "unsetting" other buffer's variables.
Could you please explain your PR. What are these s:UNSET_* vars. Where are they set? |
The This PR fixes an issue where the cache was not used correctly, and provides an API to clear it. |
I still don't see, where this vars are ever set. |
Ok, now I understand. |
Previously calling
quickfixsigns#vcsdiff#GetList()
would not set thecache.
Also add a
quickfixsigns#vcsdiff#ClearCache()
API.