Added test to see if cursor is at beginning of line to counter error where text mate considered it part of an outline when the line is empty.