X-Git-Url: https://git.distorted.org.uk/~mdw/tig/blobdiff_plain/74f83ee6af485697067aeee6392f2e45556bacee..e6f606748a384c5681985ec063f976520e93156a:/tig.c diff --git a/tig.c b/tig.c index 5ed2bb1..6a1f3d1 100644 --- a/tig.c +++ b/tig.c @@ -12,7 +12,7 @@ */ #ifndef VERSION -#define VERSION "tig-0.3" +#define VERSION "tig-0.4.git" #endif #ifndef DEBUG @@ -80,7 +80,7 @@ static size_t utf8_length(const char *string, size_t max_width, int *coloffset, "git log --cc --stat -n100 %s" #define TIG_MAIN_CMD \ - "git log --topo-order --stat --pretty=raw %s" + "git log --topo-order --pretty=raw %s" /* XXX: Needs to be defined to the empty string. */ #define TIG_HELP_CMD "" @@ -2583,6 +2583,8 @@ init_display(void) /* Leave stdin and stdout alone when acting as a pager. */ FILE *io = fopen("/dev/tty", "r+"); + if (!io) + die("Failed to open /dev/tty"); cursed = !!newterm(NULL, io, io); }