summaryrefslogtreecommitdiff
path: root/src/compgen.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-11-17 01:15:13 +0000
committerPhil Jones <philj56@gmail.com>2021-11-17 01:15:13 +0000
commit7562d7b539d8013376de2cff494231ba307f4ee1 (patch)
tree1eb4e8b28ed10da0e7a582cc4a38cfc37cef3ff8 /src/compgen.h
parent49c7405b6a88e56bb69e12189adb719927343e07 (diff)
Add sorting by run frequency.
This implements a rofi-like run cache. Other smaller changes include simplification of resize logic now that there's only one surface.
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 b3b54b5..502bcb5 100644
--- a/src/compgen.h
+++ b/src/compgen.h
@@ -1,8 +1,9 @@
#ifndef COMPGEN_H
#define COMPGEN_H
+#include "history.h"
#include "string_vec.h"
-struct string_vec compgen();
+struct string_vec compgen(struct history *history);
#endif /* COMPGEN_H */