From eb129e3ab126b4b618268ed2b9c8b30382680576 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 9 May 2010 17:42:28 -0400 Subject: [PATCH] Restructure option management code to separate section --- tig.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tig.c b/tig.c index 35b0cfa..b11c04b 100644 --- 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) -- 2.30.2