Setup the LINES/COLUMNS env vars before loading a view
commit39acb5ab03a6e3b02eaeca6c9387301615e1524e
authorJonas Fonseca <jonas.fonseca@gmail.com>
Sat, 13 Jun 2015 04:21:09 +0000 (13 00:21 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Sat, 13 Jun 2015 06:03:38 +0000 (13 02:03 -0400)
tree651e9c5116ed44676b40e6cca581505cdf5ad6cc
parent36be566eb88f3d88274dea1110bc44153b50eb07
Setup the LINES/COLUMNS env vars before loading a view

Previously the env vars were only updated once the view was loaded,
which caused diff stats to not obey the view width. This also ensures
that the env vars are correct for the initial view.
14 files changed:
NEWS.adoc
include/tig/display.h
include/tig/options.h
include/tig/view.h
src/blame.c
src/diff.c
src/display.c
src/log.c
src/options.c
src/stage.c
src/status.c
src/view.c
test/diff/diff-stat-test [new file with mode: 0755]
test/log/diff-stat-test [new file with mode: 0755]