[PATCH] Bash does not build when --disable-multibyte due to missing HAVE_MULTIBYTE guard in display.c

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] Bash does not build when --disable-multibyte due to missing HAVE_MULTIBYTE guard in display.c

Eduardo A. Bustamante López
dualbus@debian:~/src/gnu/bash$ git diff -- lib/readline/display.c
diff --git a/lib/readline/display.c b/lib/readline/display.c
index d5536211..1f281cd3 100644
--- a/lib/readline/display.c
+++ b/lib/readline/display.c
@@ -2127,7 +2127,7 @@ dumb_update:
                      cpos_adjusted = 1;
                    }
 
-#if 1
+#ifdef HAVE_MULTIBYTE
                  /* If we write a non-space into the last screen column,
                     remove the note that we added a space to compensate for
                     a multibyte double-width character that didn't fit, since

--
Eduardo Bustamante
https://dualbus.me/

Loading...