sort_browser has modified after calling browser_sort,
which means the first time sort is called it uses the old
sort method instead of the new one.
Fixes #1551
if (resort)
{
sort |= reverse ? SORT_REVERSE : 0;
+ cs_str_native_set(Config, "sort_browser", sort, NULL);
browser_sort(&state);
browser_highlight_default(&state, menu);
menu->redraw = REDRAW_FULL;
}
- cs_str_native_set(Config, "sort_browser", sort, NULL);
+ else
+ {
+ cs_str_native_set(Config, "sort_browser", sort, NULL);
+ }
break;
}