From e38ac6cc876c806cdb551d1a6569e153bd5056f5 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 30 Jun 2007 21:19:42 +0000 Subject: [PATCH] in do_yesno_prompt(), remove redundant check for NO_HELP's being FALSE git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4118 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 3 +++ src/prompt.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 600c936f..6efd1939 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ CVS code - wmouse_trafo(), which does both. Changes to do_browser(), do_mouse(), do_statusbar_mouse(), do_yesno_prompt(), and do_mouseinput(). (DLR) +- prompt.c: + do_yesno_prompt() + - Remove redundant check for NO_HELP's being FALSE. (DLR) - winio.c: get_key_buffer() - Fix inaccurate comments. (DLR) diff --git a/src/prompt.c b/src/prompt.c index a213efe2..06b2b6a6 100644 --- 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 -- 2.39.5