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

Fixed error 'unknown function strcharpart' for older versions of Vim #833

Merged
merged 1 commit into from
Apr 25, 2018
Merged

Conversation

hav4ik
Copy link
Contributor

@hav4ik hav4ik commented Apr 25, 2018

Previous commit (d3a7cd2) resulted in a immediate crash when NERDTree is started, as shown in the screenshot below:

screenshot

This is due to the function strcharpart(), which has been added to vim in commit vim/vim@58de0e2 on April 14 2016 which is equivalent to the patch level 7.4.1730. One of the most popular operating systems, Ubuntu 16.04 LTS, is still using vim 7.4.1689, which doesn't have this function.

So I added backward-compatibility, by checking if exists("*strcharpart")

@hav4ik hav4ik changed the title Fixed bug 'unknown function strcharpart' for older versions of Vim Fixed error 'unknown function strcharpart' for older versions of Vim Apr 25, 2018
@PhilRunninger
Copy link
Member

@hav4ik Thanks for fixing that oversight.

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