AMiniLegend/Caret — pull request #1 by AMiniLegend (2014-05-20 14:44:11+00:00)
Title: Updated new selection functions and added wrap

The selection functions were changed based on feedback and were formatted to match the current coding style.

A wrap feature was also added that will find the first blank line before and after a selection (or cursor, if no selection) and format that range based on the margin (ruler) setting.

The wrap-to-paragraph function was updated to reject a blank line as part of the paragraph, and a column parameter was added to the "moveTo" and "selectTo" calls so that "NaN" isn't returned.