summaryrefslogtreecommitdiff
path: root/src/compgen.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-11-28 22:19:16 +0000
committerPhil Jones <philj56@gmail.com>2022-11-28 22:19:16 +0000
commitdd36bf1c53216e1828d136cb735d65816575571f (patch)
treee722af346c019942b296e5aae6e8846afb15ed67 /src/compgen.h
parent3861e8289ae40bac168275ce6f10b231e11baa55 (diff)
Improve performance of tofi-run history sorting.
Diffstat (limited to 'src/compgen.h')
-rw-r--r--src/compgen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compgen.h b/src/compgen.h
index 5e36576..b3105db 100644
--- a/src/compgen.h
+++ b/src/compgen.h
@@ -10,6 +10,7 @@ char *compgen(void);
[[nodiscard("memory leaked")]]
char *compgen_cached(void);
-void compgen_history_sort(struct string_ref_vec *programs, struct history *history);
+[[nodiscard("memory leaked")]]
+struct string_ref_vec compgen_history_sort(struct string_ref_vec *programs, struct history *history);
#endif /* COMPGEN_H */