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

fname parsed incorrectly - unnamed buffers #9

Open
j5shi opened this issue Feb 29, 2016 · 1 comment
Open

fname parsed incorrectly - unnamed buffers #9

j5shi opened this issue Feb 29, 2016 · 1 comment

Comments

@j5shi
Copy link

j5shi commented Feb 29, 2016

Sometimes the fname will be parsed as (I've no idea why it happens in that way):

C:\Program Files (x86)\vim\[18*No Name]

So the result of regex matchstr(fname, '\d\+') will be 86, which is obviously incorrect.

@j5shi
Copy link
Author

j5shi commented Feb 29, 2016

You can use str2nr(matchstr(matchstr(fname, '\[\d\+\*No Name\]$'), '\d\+')) to solve it.

@j5shi j5shi changed the title fname parsed incorrectly fname parsed incorrectly - unnamed buffers Feb 29, 2016
j5shi added a commit to j5shi/ctrlp_bdelete.vim that referenced this issue Feb 29, 2016
amadeus pushed a commit to amadeus/ctrlp_bdelete.vim that referenced this issue Nov 1, 2017
bissli pushed a commit to bissli/ctrlp_bdelete.vim that referenced this issue Jun 28, 2023
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

No branches or pull requests

1 participant