aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-05-01 12:01:26 +0100
committerRon Yorston <rmy@pobox.com>2012-05-01 12:01:26 +0100
commitaa5bfb88d69ea24c74355298c671e07bce240d83 (patch)
treef0e739a72a0d00c6095f436b3fe93a8e815decf3
parent28b2a421911ea8d4c9e30e497245f7580267b38c (diff)
downloadbusybox-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.c2
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
346static void put_cur_glyph_and_inc_cursor(void) 346static void put_cur_glyph_and_inc_cursor(void)
347{ 347{
348 CHAR_T c = command_ps[cursor]; 348 CHAR_T c = command_ps[cursor];