dag: avoid selection artifacts

Call update() after doing all of the selection save/restore steps to
avoid selection artifacts.

Closes #204

Reported-by: Stanisław Halik <sthalik@misaki.pl>
Signed-off-by: David Aguilar <davvid@gmail.com>