Do not exit when the main view is reloaded due to option toggling
commit3ce063120cc8137e2d028f0f64a2280c15ba411b
authorJonas Fonseca <jonas.fonseca@gmail.com>
Wed, 20 Apr 2016 02:24:51 +0000 (19 22:24 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Wed, 20 Apr 2016 02:24:51 +0000 (19 22:24 -0400)
tree572204b2a94fd14dd98f2d1434ab86b997c55310
parent754b9f24e4e7b01f741a5201d7b65e285e005439
Do not exit when the main view is reloaded due to option toggling

Option toggling can cause the main view to be reloaded before any lines
have been read, which triggered a code path which exits tig if the main
view is empty. Pass in a flag to the view_ops read method noting whether
the current load is being forcefully stopped.

Fixes #470
15 files changed:
NEWS.adoc
include/tig/main.h
include/tig/pager.h
include/tig/view.h
src/blame.c
src/blob.c
src/diff.c
src/grep.c
src/log.c
src/main.c
src/pager.c
src/refs.c
src/stage.c
src/tree.c
src/view.c