gitk: Fix bugs in setting rowfinal