Code

Restructure option management code to separate section
authorJonas Fonseca <fonseca@diku.dk>
Sun, 9 May 2010 21:42:28 +0000 (17:42 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 18 May 2010 03:24:03 +0000 (23:24 -0400)
tig.c

diff --git a/tig.c b/tig.c
index 35b0cfa0e25389cbd95bd5c9d7179f450e90edb9..b11c04bb74b1fcfeb31d306874d9cc9acb24a454 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2320,6 +2320,11 @@ static struct view views[] = {
 #define view_is_displayed(view) \
        (view == display[0] || view == display[1])
 
+
+/*
+ * View drawing.
+ */
+
 static inline void
 set_view_attr(struct view *view, enum line_type type)
 {
@@ -2709,6 +2714,11 @@ redraw_display(bool clear)
        }
 }
 
+
+/*
+ * Option management
+ */
+
 static void
 toggle_enum_option_do(unsigned int *opt, const char *help,
                      const struct enum_map *map, size_t size)