We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96eb7da commit 358b734Copy full SHA for 358b734
src/core/p-console.c
@@ -86,11 +86,13 @@
86
87
if (req->actual == 1 && req->data[0] == '\x1B') return R_NONE; // CTRL-C
88
89
+ if (GET_FLAG(req->modes, RDM_READ_LINE)) {
90
#ifdef TO_WINDOWS
- if (req->actual > 1 && GET_FLAG(req->modes, RDM_READ_LINE)) req->actual -= 2; // remove CRLF from tail
91
+ if (req->actual > 1) req->actual -= 2; // remove CRLF from tail
92
#else
- if (req->actual > 0) req->actual -= 1; // remove LF from tail
93
+ if (req->actual > 0) req->actual -= 1; // remove LF from tail
94
#endif
95
+ }
96
97
// Convert to string or block of strings.
98
args = Find_Refines(ds, ALL_READ_REFS);
0 commit comments