aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 205044630..c20436270 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1046,7 +1046,13 @@ static NOINLINE int build_match_prefix(char *match_buf)
1046 1046
1047 /* Mark every \c as "quoted c" */ 1047 /* Mark every \c as "quoted c" */
1048 for (i = 0; int_buf[i]; i++) { 1048 for (i = 0; int_buf[i]; i++) {
1049#if ENABLE_PLATFORM_MINGW32
1050 /* Trailing backslash is effectively removed which confuses
1051 * the code to display case-preserved filenames. */
1052 if (int_buf[i] == '\\' && int_buf[i+1] != '\0') {
1053#else
1049 if (int_buf[i] == '\\') { 1054 if (int_buf[i] == '\\') {
1055#endif
1050 remove_chunk(int_buf, i, i + 1); 1056 remove_chunk(int_buf, i, i + 1);
1051 int_buf[i] |= QUOT; 1057 int_buf[i] |= QUOT;
1052 } 1058 }