mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ cln: code cleanup
This commit is contained in:
parent
d2384a8d24
commit
5164e1fa09
@ -575,13 +575,13 @@ inline DocPos Sci_GetRangeMaxLineLength(DocLn iBeginLine, DocLn iEndLine) {
|
||||
inline int Sci_GetCurrentEOL_A(LPCH eol) {
|
||||
switch (SciCall_GetEOLMode()) {
|
||||
case SC_EOL_CRLF:
|
||||
eol[0] = '\r'; eol[1] = '\n'; eol[2] = '\0';
|
||||
if (eol) { eol[0] = '\r'; eol[1] = '\n'; eol[2] = '\0'; }
|
||||
return 2;
|
||||
case SC_EOL_CR:
|
||||
eol[0] = '\r'; eol[1] = '\0';
|
||||
if (eol) { eol[0] = '\r'; eol[1] = '\0'; }
|
||||
return 1;
|
||||
case SC_EOL_LF:
|
||||
eol[0] = '\n'; eol[1] = '\0';
|
||||
if (eol) { eol[0] = '\n'; eol[1] = '\0'; }
|
||||
return 1;
|
||||
default:
|
||||
return 0;
|
||||
@ -592,13 +592,13 @@ inline int Sci_GetCurrentEOL_A(LPCH eol) {
|
||||
inline int Sci_GetCurrentEOL_W(LPWCH eol) {
|
||||
switch (SciCall_GetEOLMode()) {
|
||||
case SC_EOL_CRLF:
|
||||
eol[0] = L'\r'; eol[1] = L'\n'; eol[2] = L'\0';
|
||||
if (eol) { eol[0] = L'\r'; eol[1] = L'\n'; eol[2] = L'\0'; }
|
||||
return 2;
|
||||
case SC_EOL_CR:
|
||||
eol[0] = L'\r'; eol[1] = L'\0';
|
||||
if (eol) { eol[0] = L'\r'; eol[1] = L'\0'; }
|
||||
return 1;
|
||||
case SC_EOL_LF:
|
||||
eol[0] = L'\n'; eol[1] = L'\0';
|
||||
if (eol) { eol[0] = L'\n'; eol[1] = L'\0'; }
|
||||
return 1;
|
||||
default:
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user