Steve Howell
d359c89b0c
refactor: Introduce select_strategy in narrow.activate.
...
We replace these variables in narrow.activate:
then_select_id (int w/-1 as a sentinel)
select_first_unread (boolean)
The main goal here is to get away from the boolean, since
we are about to introduce a third select strategy.
The new var is select_strategy and it has a union
type with these flavors:
"exact" (was select_first_unread === false)
"first_unread" (was select_first_unread === true)
The new flavor will be something like "last_id".
Eliminating then_select_id is also nice, since the -1
sentinel value could be a pitfall, and it's semantically
cleaner to encapsulate behind a check for
select_strategy.flavor.
2018-05-03 07:52:15 -07:00
..
2018-05-01 16:45:52 -07:00
2018-04-18 11:06:50 -07:00
2018-05-02 12:41:01 -07:00
2018-04-30 17:47:34 +05:30
2018-05-02 11:42:28 -07:00
2018-05-02 15:23:33 -07:00
2018-03-15 18:06:04 -07:00
2018-03-05 09:12:59 -08:00
2018-03-13 08:22:42 -04:00
2018-03-08 07:54:19 -08:00
2018-04-28 11:15:14 -07:00
2018-04-28 11:15:14 -07:00
2018-04-22 21:33:33 -07:00
2018-03-13 08:22:42 -04:00
2018-04-20 13:45:58 -07:00
2018-04-27 14:19:58 -07:00
2018-04-28 11:15:14 -07:00
2018-03-07 15:53:11 -08:00
2018-03-07 15:53:11 -08:00
2018-03-05 10:42:38 -08:00
2018-04-28 11:15:14 -07:00
2018-04-09 16:35:14 -07:00
2018-04-24 08:27:43 -07:00
2018-03-13 08:22:42 -04:00
2018-04-22 21:33:33 -07:00
2018-03-30 11:51:52 -07:00
2018-04-21 22:24:07 -07:00
2018-03-27 17:16:55 -07:00
2018-04-11 11:39:48 -07:00
2018-03-30 11:52:14 -07:00
2018-05-02 11:23:58 -07:00
2018-04-22 21:33:34 -07:00
2018-04-28 11:15:14 -07:00
2018-03-18 10:22:09 -07:00
2018-04-20 13:45:58 -07:00
2018-04-05 17:40:12 -07:00
2018-04-12 09:48:02 -07:00
2018-04-28 11:15:14 -07:00
2018-04-03 09:20:55 -07:00
2018-03-23 15:17:21 -07:00
2018-04-28 11:15:14 -07:00
2018-03-04 17:47:05 -08:00
2018-03-13 08:22:42 -04:00
2018-04-22 20:11:38 -07:00
2018-04-28 13:00:29 -07:00
2018-04-28 14:39:24 -07:00
2018-04-23 11:46:46 -07:00
2018-04-05 09:54:48 -07:00
2018-04-28 13:14:27 -07:00
2018-04-27 08:52:24 -07:00
2018-04-02 18:58:51 -07:00
2018-03-28 09:12:59 -07:00
2018-04-26 14:33:28 -07:00
2018-04-27 08:52:24 -07:00
2018-05-02 13:34:54 -07:00
2018-05-03 07:52:15 -07:00
2018-03-28 10:41:26 -07:00
2018-04-22 21:33:33 -07:00
2018-03-18 12:54:11 -07:00
2018-04-23 16:56:24 -07:00
2018-04-05 09:54:48 -07:00
2018-04-27 19:22:28 -07:00
2018-05-02 12:41:01 -07:00
2018-04-12 09:50:14 -07:00
2018-03-07 15:53:11 -08:00
2018-03-27 09:53:45 -07:00
2018-04-26 14:33:28 -07:00
2018-04-28 11:15:14 -07:00
2018-04-12 09:47:01 -07:00
2018-04-22 21:33:33 -07:00
2018-04-28 13:00:29 -07:00
2018-04-30 10:53:23 -07:00
2018-04-28 10:23:46 -07:00
2018-04-05 21:49:12 -07:00
2018-04-12 09:48:02 -07:00
2018-03-25 10:40:40 -07:00
2018-04-13 12:07:42 -07:00
2018-03-27 18:01:03 -07:00
2018-05-02 11:42:26 -07:00
2018-04-30 18:17:41 -07:00
2018-04-28 13:46:07 -07:00
2018-04-30 17:48:16 +05:30
2018-04-20 13:45:58 -07:00
2018-04-27 19:22:28 -07:00
2018-03-25 08:28:04 -07:00
2018-04-02 18:48:55 -07:00
2018-04-30 17:47:34 +05:30
2018-03-26 06:44:19 -04:00
2018-04-30 11:15:07 -07:00
2018-04-30 11:15:07 -07:00
2018-04-30 11:38:47 -07:00
2018-04-28 11:15:14 -07:00
2018-04-13 16:31:18 -07:00
2018-04-22 21:33:33 -07:00
2018-04-28 11:15:14 -07:00
2018-04-30 11:15:07 -07:00
2018-04-22 21:33:33 -07:00
2018-03-31 09:29:56 -07:00
2018-04-22 21:33:33 -07:00
2018-04-21 22:28:45 -07:00
2018-05-02 09:16:24 -07:00
2018-03-16 09:23:23 -07:00
2018-04-28 13:14:27 -07:00
2018-04-05 17:17:08 -07:00
2018-04-02 10:48:28 -07:00
2018-04-05 09:54:48 -07:00
2018-04-12 09:48:02 -07:00
2018-05-02 11:23:58 -07:00
2018-05-02 12:32:13 -07:00
2018-03-21 16:08:12 -07:00
2018-03-15 10:09:28 -07:00
2018-04-05 17:40:12 -07:00
2018-04-28 11:15:14 -07:00
2018-05-02 09:16:24 -07:00