nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 23a4e433bd894fdd1c5917bfbcd58a80e8162dfc
parent 5fcf8bfba9c75419657a7a17eba977fa0e5e7c88
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Sat, 30 Jun 2007 21:19:42 +0000

in do_yesno_prompt(), remove redundant check for NO_HELP's being FALSE


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4118 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 5+++++
Msrc/prompt.c | 8++++----
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-30 David Lawrence Ramsey <pooka109@gmail.com> + + * prompt.c (do_yesno_prompt): Remove redundant check for + NO_HELP's being FALSE. + 2007-06-28 David Lawrence Ramsey <pooka109@gmail.com> * browser.c (do_browser), nano.c (do_mouse), prompt.c diff --git a/src/prompt.c b/src/prompt.c @@ -1332,12 +1332,12 @@ int do_yesno_prompt(bool all, const char *msg) break; #ifndef DISABLE_MOUSE case KEY_MOUSE: - /* We can click on the shortcut list to select an - * answer. */ + /* We can click on the Yes/No/All shortcut list to + * select an answer. */ if (get_mouseinput(&mouse_x, &mouse_y, FALSE) == 0 && wmouse_trafo(bottomwin, &mouse_y, &mouse_x, - FALSE) && !ISSET(NO_HELP) && mouse_x < - (width * 2) && mouse_y > 0) { + FALSE) && mouse_x < (width * 2) && + mouse_y > 0) { int x = mouse_x / width; /* Calculate the x-coordinate relative to the * two columns of the Yes/No/All shortcuts in