Fix segfault in the stage view when view->parent is NULL
commit55307527b7bd5fa232544f8e536fb146a9909e8d
authorJonas Fonseca <jonas.fonseca@gmail.com>
Fri, 20 Feb 2015 04:50:56 +0000 (19 23:50 -0500)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Fri, 20 Feb 2015 04:53:03 +0000 (19 23:53 -0500)
tree5147913f8ab2195c79f30b531840576a6805cbd2
parent1ccf6720a440efc5563e932092e3bf790382846f
Fix segfault in the stage view when view->parent is NULL

This changes the stage view to check before refreshing the parent view,
since it is only set when the view is opened in split mode.

Fixes #376
NEWS.adoc
src/stage.c
src/view.c
test/main/update-unstaged-changes-test [new file with mode: 0755]
test/main/util.sh