http://git.busybox.net/busybox/commit/?id=3c385cd706da9b309527d67e3c91c0d01915722e

lineedit: fix bug 5824: Since version 23530 with lineedit.c, "fdisk" & "ed" can't work any more 

--- busybox-1.11.3/libbb/lineedit.c	2009-08-21 21:20:07.000000000 -0700
+++ busybox-1.11.3/libbb/lineedit.c	2009-08-21 21:20:37.000000000 -0700
@@ -1412,7 +1412,8 @@
 	if ((state->flags & SAVE_HISTORY) && state->hist_file)
 		load_history(state->hist_file);
 #endif
-	state->cur_history = state->cnt_history;
+	if (state->flags & DO_HISTORY)
+		state->cur_history = state->cnt_history;
 
 	/* prepare before init handlers */
 	cmdedit_y = 0;  /* quasireal y, not true if line > xt*yt */
