diff options
author | Ron Yorston <rmy@pobox.com> | 2012-05-01 12:01:26 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-05-01 12:01:26 +0100 |
commit | aa5bfb88d69ea24c74355298c671e07bce240d83 (patch) | |
tree | f0e739a72a0d00c6095f436b3fe93a8e815decf3 | |
parent | 28b2a421911ea8d4c9e30e497245f7580267b38c (diff) | |
download | busybox-w32-aa5bfb88d69ea24c74355298c671e07bce240d83.tar.gz busybox-w32-aa5bfb88d69ea24c74355298c671e07bce240d83.tar.bz2 busybox-w32-aa5bfb88d69ea24c74355298c671e07bce240d83.zip |
lineedit: disable hack for wrong width on MinGW
-rw-r--r-- | libbb/lineedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index ec0997037..6990b91b6 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -342,7 +342,7 @@ int adjust_width_and_validate_wc(unsigned *width_adj, int wc); | |||
342 | /* Put 'command_ps[cursor]', cursor++. | 342 | /* Put 'command_ps[cursor]', cursor++. |
343 | * Advance cursor on screen. If we reached right margin, scroll text up | 343 | * Advance cursor on screen. If we reached right margin, scroll text up |
344 | * and remove terminal margin effect by printing 'next_char' */ | 344 | * and remove terminal margin effect by printing 'next_char' */ |
345 | #define HACK_FOR_WRONG_WIDTH 1 | 345 | #define HACK_FOR_WRONG_WIDTH 1 && !ENABLE_PLATFORM_MINGW32 |
346 | static void put_cur_glyph_and_inc_cursor(void) | 346 | static void put_cur_glyph_and_inc_cursor(void) |
347 | { | 347 | { |
348 | CHAR_T c = command_ps[cursor]; | 348 | CHAR_T c = command_ps[cursor]; |