commit - 30c86dc2e71cef1d5c7c58bf5c3c454a49104c9ef197fef5f4753531f556ce51
commit + b8fcb4254a166c48c48a511248ce14b7fedbb26a9016b15800ea7c8d452ff696
blob - 120d8d2794b05b3ef22152c1f63e2240e436f1fef0cac89adae160f515597d50
blob + 0645d957d1b5ca92447917beba39af5d7c255097ebdb283447f4f400bcdab9f4
--- tog/tog.c
+++ tog/tog.c
*_selected = *_first; \
} while (0)
- if (first == NULL)
+ if (first == NULL || *first == NULL)
select_worktree_entry(first, select);
else if (*select == *first) {
if (wts == TOG_WORKTREE_CHANGES_LOCAL && (*first)->idx == 1)