Fix regression in diff_get_lineno
Fix regression in add_line_at making line numbers start atf 0 instead of 1

This in turn caused the stash view to segfault when displaying IDs.