nano

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

commit 3227ba46d9b93ba4006eb0bc906b6067e4f5ccf2
parent d994af033496d75589729664d28a6592fccf7251
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sat, 14 Jul 2018 20:46:50 +0200

mouse: put the row/column arguments in the proper order  [coverity scan]

(This one call was overlooked in commit f5c87a7f that changed the order.)

This makes clicking on the Yes/No/All/Cancel menu items work again.

Diffstat:
Msrc/prompt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -751,7 +751,7 @@ int do_yesno_prompt(bool all, const char *msg) else if (kbinput == KEY_MOUSE) { int mouse_x, mouse_y; /* We can click on the Yes/No/All shortcuts to select an answer. */ - if (get_mouseinput(&mouse_x, &mouse_y, FALSE) == 0 && + if (get_mouseinput(&mouse_y, &mouse_x, FALSE) == 0 && wmouse_trafo(bottomwin, &mouse_y, &mouse_x, FALSE) && mouse_x < (width * 2) && mouse_y > 0) { int x = mouse_x / width;