about summary refs log tree commit diff homepage
path: root/merge.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-04 16:27:40 -0500
committerJune McEnroe <june@causal.agency>2019-01-04 16:27:40 -0500
commitbb7cdbc24e8c588bc0960e5f4e6f49a336f73fe2 (patch)
tree1a3886b30493415e83b67139afb7c9a5745df91d /merge.c
parentCall cap_enter in client and server (diff)
parentRe-create help page (diff)
downloadtorus-bb7cdbc24e8c588bc0960e5f4e6f49a336f73fe2.tar.gz
torus-bb7cdbc24e8c588bc0960e5f4e6f49a336f73fe2.zip
Merge branch 'backport'
Diffstat (limited to '')
-rw-r--r--merge.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/merge.c b/merge.c
index ce5dbef..66a7a5e 100644
--- a/merge.c
+++ b/merge.c
@@ -105,11 +105,14 @@ int main(int argc, char *argv[]) {
 		if (!countA && !countB) break;
 		if (!countA || !countB) errx(EX_DATAERR, "different size inputs");
 
-		const struct Tile *tileC = (tileA.meta.accessTime > tileB.meta.accessTime)
+		struct Meta metaA = tileMeta(&tileA);
+		struct Meta metaB = tileMeta(&tileB);
+
+		const struct Tile *tileC = (metaA.accessTime > metaB.accessTime)
 			? &tileA
 			: &tileB;
 
-		if (tileA.meta.modifyTime != tileB.meta.modifyTime) {
+		if (metaA.modifyTime != metaB.modifyTime) {
 			drawTile(0, &tileA);
 			drawTile(CellRows + 1, &tileB);
 			move(CellRows * 2 + 2, 0);
98e3f6e19ce10c11cf7c6b85cd48a3a&follow=1'>List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe