diff -ur bash-4.2.42.orig/lib/readline/display.c bash-4.2.42/lib/readline/display.c
--- bash-4.2.42.orig/lib/readline/display.c	2009-09-26 20:37:33.000000000 +0200
+++ bash-4.2.42/lib/readline/display.c	2013-01-29 13:51:39.923337022 +0100
@@ -1335,7 +1335,7 @@
 		  memcpy (old, new, bytes);
 		  /* Fix up indices if we copy data from one line to another */
 		  omax += bytes - ret;
-		  for (i = current_line+1; i < inv_botlin+1; i++)
+		  for (i = current_line+1; i <= inv_botlin+1; i++)
 		    vis_lbreaks[i] += bytes - ret;
 		}
 	    }
