Partly restore old refresh behavior
commite56765a6b3e810ede826b5076deb32945070e262
authorJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 1 Jul 2014 03:48:51 +0000 (30 23:48 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 1 Jul 2014 03:48:51 +0000 (30 23:48 -0400)
tree4abf7bd333e04711a8e969d372727562f3d3706b
parent78a32fa5b5f18ab1871151d635652f7dbc45f6d8
Partly restore old refresh behavior

This ensures that the current view is refreshed after returning from an
external command when `refresh-mode` is set to `after-command`. That was
what Tig used to do before the option was introduced. It special cases
the 'after-command' event to force a refresh in the current view.

The fix is tested to work in both the main and status view.

Fixes #289
NEWS.adoc
include/tig/watch.h
src/display.c
src/watch.c
test/main/refresh-test [new file with mode: 0755]
test/status/refresh-test [new file with mode: 0755]