diff options
author | Paul Fariello <paul@fariello.eu> | 2020-01-30 23:44:43 +0100 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2020-01-31 10:07:08 +0100 |
commit | a52e3ea1d860b155c73869c3d6cc4fa81015b9cf (patch) | |
tree | f64dca66cc3d387d9f50325cf25d06cdbed3bd65 /src/ui | |
parent | 8fba8a8958146a0fa42d649339b66604defd6297 (diff) | |
download | profani-tty-a52e3ea1d860b155c73869c3d6cc4fa81015b9cf.tar.gz |
Add context to autocomplete_with_func and use it for omemo trust command
Fix #1068
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window_list.c | 4 | ||||
-rw-r--r-- | src/ui/window_list.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/window_list.c b/src/ui/window_list.c index 36c46680..c316ec6e 100644 --- a/src/ui/window_list.c +++ b/src/ui/window_list.c @@ -1093,13 +1093,13 @@ wins_create_summary(gboolean unread) } char* -win_autocomplete(const char *const search_str, gboolean previous) +win_autocomplete(const char *const search_str, gboolean previous, void *context) { return autocomplete_complete(wins_ac, search_str, TRUE, previous); } char* -win_close_autocomplete(const char *const search_str, gboolean previous) +win_close_autocomplete(const char *const search_str, gboolean previous, void *context) { return autocomplete_complete(wins_close_ac, search_str, TRUE, previous); } diff --git a/src/ui/window_list.h b/src/ui/window_list.h index c6e76cdb..afdf2d4a 100644 --- a/src/ui/window_list.h +++ b/src/ui/window_list.h @@ -94,9 +94,9 @@ void wins_swap(int source_win, int target_win); void wins_hide_subwin(ProfWin *window); void wins_show_subwin(ProfWin *window); -char* win_autocomplete(const char *const search_str, gboolean previous); +char* win_autocomplete(const char *const search_str, gboolean previous, void *context); void win_reset_search_attempts(void); -char* win_close_autocomplete(const char *const search_str, gboolean previous); +char* win_close_autocomplete(const char *const search_str, gboolean previous, void *context); void win_close_reset_search_attempts(void); #endif |