Skip to content

Commit c55a7c0

Browse files
author
Janusz Augustyński
committed
TUI: poprawienie do wyniku “E_tui_data_Q_field_P_select”
1 parent 0a1191f commit c55a7c0

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

module/tui/ncurses.cx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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':
947943
Enter: 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();

program/ui/main.cx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ main(
6363
#endif
6464
I_V()
6565
goto End;
66-
66+
#if 0
6767
SSL_CTX *ssl_ctx = E_net_cli_Q_ssl_M();
6868
if( !ssl_ctx )
6969
goto End_4;
@@ -102,7 +102,7 @@ main(
102102
Skip:
103103
E_net_cli_Q_ssl_W( ssl_ctx );
104104
End_4:;
105-
105+
#endif
106106
X_M( ui, close );
107107
if( _X_var( ui, close ) < 0 )
108108
return (int)_X_var( ui, close );

0 commit comments

Comments
 (0)