mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Removed result from main loop
This commit is contained in:
parent
a6160d52c6
commit
3984c660b6
@ -99,7 +99,6 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
|
||||
|
||||
while(cmd_result == TRUE) {
|
||||
wint_t ch = ERR;
|
||||
int result;
|
||||
size = 0;
|
||||
|
||||
while(ch != '\n') {
|
||||
@ -116,9 +115,7 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
|
||||
g_timer_start(timer);
|
||||
}
|
||||
|
||||
ch = ui_get_char(inp, &size, &result);
|
||||
|
||||
ui_handle_special_keys(ch, result);
|
||||
ch = ui_get_char(inp, &size);
|
||||
#ifdef HAVE_LIBOTR
|
||||
otr_poll();
|
||||
#endif
|
||||
|
@ -175,16 +175,19 @@ ui_close(void)
|
||||
}
|
||||
|
||||
wint_t
|
||||
ui_get_char(char *input, int *size, int *result)
|
||||
ui_get_char(char *input, int *size)
|
||||
{
|
||||
wint_t ch = inp_get_char(input, size, result);
|
||||
if (ch != ERR && *result != ERR) {
|
||||
int result = 0;
|
||||
wint_t ch = inp_get_char(input, size, &result);
|
||||
if (ch != ERR && result != ERR) {
|
||||
ui_reset_idle_time();
|
||||
ui_input_nonblocking(TRUE);
|
||||
} else {
|
||||
ui_input_nonblocking(FALSE);
|
||||
}
|
||||
|
||||
ui_handle_special_keys(ch, result);
|
||||
|
||||
return ch;
|
||||
}
|
||||
|
||||
|
@ -230,7 +230,7 @@ void ui_update_presence(const resource_presence_t resource_presence,
|
||||
void ui_about(void);
|
||||
void ui_statusbar_new(const int win);
|
||||
|
||||
wint_t ui_get_char(char *input, int *size, int *result);
|
||||
wint_t ui_get_char(char *input, int *size);
|
||||
void ui_input_clear(void);
|
||||
void ui_input_nonblocking(gboolean);
|
||||
void ui_replace_input(char *input, const char * const new_input, int *size);
|
||||
|
@ -325,7 +325,7 @@ void ui_update_presence(const resource_presence_t resource_presence,
|
||||
void ui_about(void) {}
|
||||
void ui_statusbar_new(const int win) {}
|
||||
|
||||
wint_t ui_get_char(char *input, int *size, int *result)
|
||||
wint_t ui_get_char(char *input, int *size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user