Skip to content

Conversation

@yuki-yano
Copy link

No description provided.

else
if get(b:, 'ruby_hl_lvar_match_pattern', '') != ''
let w:ruby_hl_lvar_match_id = matchadd(g:ruby_hl_lvar_hl_group, b:ruby_hl_lvar_match_pattern, 0)
let w:ruby_hl_lvar_match_id = matchadd(g:ruby_hl_lvar_hl_group, b:ruby_hl_lvar_match_pattern, g:ruby_hl_lvar_highlight_priority)
Copy link
Collaborator

@pocke pocke Feb 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you replace 0 on L62 with the option?

let m = matchaddpos(g:ruby_hl_lvar_hl_group, poses, 0)

This plugin uses both of matchadd and matchaddpos functions, so we need to update both function callings.

By the way, I guess we can drop to support matchadd function.
matchaddpos is available since Vim 7.4.330 (ref: #9), but we can use Vim 8.1 now.
It is not a too edge API already, so we have no reason to keep compatibility of old Vim 7.4.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed b18e752

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