IDEA-125272 git: do not fail to annotate file with "CR" separators

* git doesn't treat them as line separators
* remove support of "LFCR" separators that in not a thing
This commit is contained in:
Aleksey Pivovarov
2016-11-30 17:05:31 +03:00
parent 74458aa5f5
commit d010d44d30
@@ -55,7 +55,7 @@ public class StringScanner {
return true;
}
final char ch = myText.charAt(myPosition);
return ch == '\n' || ch == '\r';
return ch == '\n';
}
/**
@@ -69,7 +69,7 @@ public class StringScanner {
final char ch = myText.charAt(myPosition++);
if (hasMoreData()) {
final char ch2 = myText.charAt(myPosition);
if (ch == '\n' && ch2 == '\r' || ch == '\r' && ch2 == '\n') {
if (ch == '\r' && ch2 == '\n') {
myPosition++;
}
}