mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user