[OS X] fixed extra linefeeds when text is edited