Compare commits

...

3 commits

Author SHA1 Message Date
Michael Mikonos
94fc75a179
Merge 74ffc8da69 into a95d5559de 2024-10-13 21:38:56 -04:00
Arsenic Blood
74ffc8da69
Merge branch 'master' into taskfocusnext0 2024-03-07 00:00:14 -05:00
Michael Mikonos
5429d214f4 TaskFocusNext(): avoid resetting _task if sys_focus_task is NULL 2023-11-02 20:49:51 +08:00

View file

@ -37,10 +37,14 @@ $HL,1$*/
U0 TaskFocusNext() U0 TaskFocusNext()
{ {
CTask *task, *_task = sys_focus_task; CTask *task, *_task;
sys_focus_task = NULL; if (sys_focus_task)
if (!_task) {
_task = sys_focus_task;
sys_focus_task = NULL;
}
else
_task = sys_task; _task = sys_task;
task = _task->next_task; task = _task->next_task;
do do