Commit Diff


commit - 84717ec7d4074136fd55aa5edb18ae689e230d1a
commit + 1a57306adedf8027b8f137105f39783cec2d75a9
blob - 1dc94f50c8b5a37214059da437455e8fd0e99dc2
blob + 72a9f585af0ad899ef3958b0c733ba7cc849c919
--- tog/tog.c
+++ tog/tog.c
@@ -433,6 +433,16 @@ view_set_child(struct tog_view *view, struct tog_view 
 
 	view->child = child;
 	return NULL;
+}
+
+void
+view_vborder(struct tog_view *view)
+{
+	if (view->child == NULL)
+		return;
+
+	mvwvline(view->window, view->begin_y, view->child->begin_x - 1,
+	    got_locale_is_utf8() ? ACS_VLINE : '|', view->nlines);
 }
 
 static const struct got_error *
@@ -972,6 +982,7 @@ draw_commits(struct tog_view *view, struct commit_queu
 		entry = TAILQ_NEXT(entry, entry);
 	}
 
+	view_vborder(view);
 	update_panels();
 
 	return err;
@@ -1506,6 +1517,7 @@ draw_file(struct tog_view *view, FILE *f, int *first_d
 	}
 	*last_displayed_line = nlines;
 
+	view_vborder(view);
 	update_panels();
 
 	return NULL;
@@ -1857,6 +1869,7 @@ draw_blame(struct tog_view *view, struct got_object_id
 	}
 	*last_displayed_line = lineno;
 
+	view_vborder(view);
 	update_panels();
 
 	return NULL;
@@ -2585,6 +2598,7 @@ draw_tree_entries(struct tog_view *view,
 		te = SIMPLEQ_NEXT(te, entry);
 	}
 
+	view_vborder(view);
 	return err;
 }