Commit dee2c213ed24c0b0fa01f22f144e5088e2b028e0

Stefan Sperling 2019-11-13T10:49:06

fix tog display issue caused by Tab in commit messages; reported by mpi@

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 8f15714..1586b0c 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -1294,7 +1294,7 @@ draw_commit(struct tog_view *view, struct got_commit_object *commit,
 	if (newline)
 		*newline = '\0';
 	limit = avail - col;
-	err = format_line(&wlogmsg, &logmsg_width, logmsg, limit, 0);
+	err = format_line(&wlogmsg, &logmsg_width, logmsg, limit, col);
 	if (err)
 		goto done;
 	waddwstr(view->window, wlogmsg);