nvie / vim-flake8

Flake8 plugin for Vim
BSD 2-Clause "Simplified" License
1.06k stars 99 forks source link

Check if s:markerdata is defined #66

Open Mortal opened 7 years ago

Mortal commented 7 years ago

I have a single mapping that calls both :noh and Flake8UnplaceMarkers. However, Flake8UnplaceMarkers fails if Flake8 has not already been called since s:markerdata is not defined. This seems like an oversight in the code since it currently checks if s:signids is defined before removing gutter marks, so it seems natural to also check if there is marker data before removing markers.