Changelog: tig-1.2.1 --------- Incompatibilities: - Move manual and man pages to doc/ directory and rename AsciiDoc files to have .asciidoc as the extension to make them render on GitHub. Improvements: - Show blob sizes in the tree view either as bytes or using binary unit prefixes. Example: `set show-file-size = units`. (GH #163) - Reduce main view memory usage and startup time, especially when revision graph rendering is disabled. (GH #160) Bug fixes: - Fix submodule-related setup to check for non-zero return value from setenv(). (GH #188)
32 lines
2 KiB
Text
32 lines
2 KiB
Text
$NetBSD: patch-tig_c,v 1.4 2014/04/04 21:00:24 ryoon Exp $
|
|
|
|
--- tig.c.orig 2013-08-24 14:42:16.000000000 +0000
|
|
+++ tig.c
|
|
@@ -2669,20 +2669,20 @@ redraw_display(bool clear)
|
|
*/
|
|
|
|
#define TOGGLE_MENU \
|
|
- TOGGLE_(LINENO, '.', "line numbers", &opt_line_number, NULL) \
|
|
+ TOGGLE_(LINENO, '.', "line numbers", &opt_line_number, (struct enum_map *)NULL) \
|
|
TOGGLE_(DATE, 'D', "dates", &opt_date, date_map) \
|
|
TOGGLE_(AUTHOR, 'A', "author", &opt_author, author_map) \
|
|
TOGGLE_(GRAPHIC, '~', "graphics", &opt_line_graphics, graphic_map) \
|
|
- TOGGLE_(REV_GRAPH, 'g', "revision graph", &opt_rev_graph, NULL) \
|
|
+ TOGGLE_(REV_GRAPH, 'g', "revision graph", &opt_rev_graph, (struct enum_map *)NULL) \
|
|
TOGGLE_(FILENAME, '#', "file names", &opt_filename, filename_map) \
|
|
TOGGLE_(FILE_SIZE, '*', "file sizes", &opt_file_size, file_size_map) \
|
|
TOGGLE_(IGNORE_SPACE, 'W', "space changes", &opt_ignore_space, ignore_space_map) \
|
|
TOGGLE_(COMMIT_ORDER, 'l', "commit order", &opt_commit_order, commit_order_map) \
|
|
- TOGGLE_(REFS, 'F', "reference display", &opt_show_refs, NULL) \
|
|
- TOGGLE_(CHANGES, 'C', "local change display", &opt_show_changes, NULL) \
|
|
- TOGGLE_(ID, 'X', "commit ID display", &opt_show_id, NULL) \
|
|
- TOGGLE_(FILES, '%', "file filtering", &opt_file_filter, NULL) \
|
|
- TOGGLE_(TITLE_OVERFLOW, '$', "commit title overflow display", &opt_show_title_overflow, NULL) \
|
|
+ TOGGLE_(REFS, 'F', "reference display", &opt_show_refs, (struct enum_map *)NULL) \
|
|
+ TOGGLE_(CHANGES, 'C', "local change display", &opt_show_changes, (struct enum_map *)NULL) \
|
|
+ TOGGLE_(ID, 'X', "commit ID display", &opt_show_id, (struct enum_map *)NULL) \
|
|
+ TOGGLE_(FILES, '%', "file filtering", &opt_file_filter, (struct enum_map *)NULL) \
|
|
+ TOGGLE_(TITLE_OVERFLOW, '$', "commit title overflow display", &opt_show_title_overflow, (struct enum_map *)NULL) \
|
|
|
|
static bool
|
|
toggle_option(struct view *view, enum request request, char msg[SIZEOF_STR])
|