mgedmin / coverage-highlight.vim

Vim plugin to highlight Python source code lines that lack test coverage
MIT License
56 stars 5 forks source link

Make the jump commands wrap around #27

Closed jwodder closed 3 years ago

jwodder commented 3 years ago

This PR modifies the :NextUncovered command so that, when it is invoked when the cursor is after the last uncovered block, the cursor moves to the first uncovered block, and similarly for :PrevUncovered. The PR also fixes a typo in the message previously shown when there are no uncovered lines below/above the current line (now only shown when there are no uncovered lines in the whole file, or when at the last/first line of the only uncovered block).

jwodder commented 3 years ago

@mgedmin I've updated the PR so that wraparound is only in effect if the &wrapscan option is set.