@@ -676,7 +676,7 @@ D( ncurses, getch )
676676 select = input -> select_n - y_n ;
677677 }
678678 select += ev .y - ( pos_y - y_n );
679- if ( E_tui_data_Q_field_P_select ( input , select ))
679+ if ( ! E_tui_data_Q_field_P_select ( input , select ))
680680 { E_tui_data_Q_layout_S_focus_x = 0 ;
681681 E_tui_data_Q_layout_S_focus_select = ~0 ;
682682 E_ncurses_I_lay ();
@@ -701,7 +701,7 @@ D( ncurses, getch )
701701 select = input -> select_n - y_n ;
702702 }
703703 select += ev .y - ( pos_y + 1 );
704- if ( E_tui_data_Q_field_P_select ( input , select ))
704+ if ( ! E_tui_data_Q_field_P_select ( input , select ))
705705 { E_tui_data_Q_layout_S_focus_x = 0 ;
706706 E_tui_data_Q_layout_S_focus_select = ~0 ;
707707 E_ncurses_I_lay ();
@@ -776,8 +776,6 @@ D( ncurses, getch )
776776 E_ncurses_I_lay ();
777777 else
778778 beep ();
779- }else
780- {
781779 }
782780 }
783781 break ;
@@ -790,8 +788,6 @@ D( ncurses, getch )
790788 E_ncurses_I_lay ();
791789 }else
792790 beep ();
793- }else
794- {
795791 }
796792 }
797793 break ;
@@ -946,7 +942,7 @@ D( ncurses, getch )
946942 case '\r' :
947943Enter : if ( ~E_tui_data_Q_layout_S_focus_select )
948944 { struct E_tui_data_Q_field_Z * input = E_mem_Q_tab_R ( E_tui_data_Q_layout_S , E_tui_data_Q_layout_S_focus );
949- if ( E_tui_data_Q_field_P_select ( input , E_tui_data_Q_layout_S_focus_select ))
945+ if ( ! E_tui_data_Q_field_P_select ( input , E_tui_data_Q_layout_S_focus_select ))
950946 { E_tui_data_Q_layout_S_focus_x = 0 ;
951947 E_tui_data_Q_layout_S_focus_select = ~0 ;
952948 E_ncurses_I_lay ();
0 commit comments