summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-16 18:41:49 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-16 18:42:06 -0700
commit4e5bca0b15ae58757d1d294b1ae8dbd9cce67ccc (patch)
tree49fb51eedd82d2ca9376c4e9caeee4a4a7c31bd2
parentfa10f722cd285c9be0c67744d67406df1662084e (diff)
Add config.h
-rw-r--r--config.h1
-rw-r--r--fzy.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..7b56ce9
--- /dev/null
+++ b/config.h
@@ -0,0 +1 @@
+#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
diff --git a/fzy.c b/fzy.c
index 2dcf5aa..86c4de7 100644
--- a/fzy.c
+++ b/fzy.c
@@ -9,6 +9,8 @@
#include "tty.h"
#include "choices.h"
+#include "config.h"
+
int flag_show_scores = 0;
size_t num_lines = 10;
@@ -45,8 +47,6 @@ void clear(tty_t *tty){
tty_flush(tty);
}
-#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
-
void draw_match(tty_t *tty, const char *choice, int selected){
int n = strlen(search);
size_t positions[n + 1];