JugglerShu/XVim — Issue #16: How to treat newline in Mac
Author: JugglerShu
Created: 2012-02-28 17:31:49+00:00
State: open
Labels: Question

What we should use as a newline in Mac?
I found that [NSCharacterSet newlineCharacterSet] can be used to find newline...

I used it in XVimSearchLineEvaluator like

[source rangeOfCharacterFromSet:[NSCharacterSet newlineCharacterSet] options:NSBackwardsSearch range:NSMakeRange(0, original.location)]
Is this fine?