]> git.pld-linux.org Git - packages/dialog.git/blob - dialog-menumouse.patch
- menumouse patch: fix for mouse on 1st item in dialog_list
[packages/dialog.git] / dialog-menumouse.patch
1 diff -Nur dialog-0.69.orig/list.c dialog-0.69/list.c
2 --- dialog-0.69.orig/list.c     Tue Jan 16 11:34:36 1996
3 +++ dialog-0.69/list.c  Wed Oct 31 15:54:25 2001
4 @@ -235,7 +235,7 @@
5         if (!new) {
6             if ( (key>='1' && key<='9')
7                 || (key>=DIALOG_M_EVENT && key-DIALOG_M_EVENT<' ') ) {
8 -               key -= (key>DIALOG_M_EVENT ? DIALOG_M_EVENT : '1');
9 +               key -= (key>=DIALOG_M_EVENT ? DIALOG_M_EVENT : '1');
10                 key=min(key,max_choice);
11                 for (new=first; key && new->next; new=new->next)
12                   key--;
This page took 0.038488 seconds and 3 git commands to generate.