From: Cheng Renquan Date: Thu, 1 Sep 2011 17:52:21 +0000 (-0700) Subject: scripts/kconfig/nconf: fix editing long strings X-Git-Tag: v3.2-rc1~27^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e631a57a19e103c3bb59495b236634ec62e2a850;p=pandora-kernel.git scripts/kconfig/nconf: fix editing long strings The original dialog_inputbox doesn't work with longer than prompt_width strings, here fixed it in this way: 1) add variable cursor_form_win to record cursor of form_win, keep its value always between [0, prompt_width-1]; reuse the original cursor_position as cursor of the string result, use (cursor_position-cursor_form_win) as begin offset to show part of the string in form_win; Signed-off-by: Cheng Renquan Cc: Arnaud Lacombe Cc: Nir Tzachar --- Reading git-diff-tree failed