svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

Fix `EasyClip#HasMapping` for buffer-local mappings #112

Closed idanarye closed 6 years ago

idanarye commented 6 years ago

commit fe7d6a55 - which changed the bindings to be local - has broken EasyClip#HasMapping. maparg was now called for mappings like '<buffer> p' - which was taken literally.

eloytoro commented 6 years ago

I caused this bug 😢 I think it would be better if instead of taking it out of the stream we modify the function's signature to add the <buffer> modifier to the mapping as a conditional parameter