Browse code

Add config.h

John Hawthorn authored on 17/09/2014 01:41:49
Showing 2 changed files

  • config.h index 0000000..7b56ce9
  • fzy.c index 2dcf5aa..86c4de7 100644
1 1
new file mode 100644
... ...
@@ -0,0 +1 @@
1
+#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
... ...
@@ -9,6 +9,8 @@
9 9
 #include "tty.h"
10 10
 #include "choices.h"
11 11
 
12
+#include "config.h"
13
+
12 14
 int flag_show_scores = 0;
13 15
 
14 16
 size_t num_lines = 10;
... ...
@@ -45,8 +47,6 @@ void clear(tty_t *tty){
45 47
 	tty_flush(tty);
46 48
 }
47 49
 
48
-#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
49
-
50 50
 void draw_match(tty_t *tty, const char *choice, int selected){
51 51
 	int n = strlen(search);
52 52
 	size_t positions[n + 1];