diff --git a/plugins/tweak.cpp b/plugins/tweak.cpp index e120cd172..433f8d197 100644 --- a/plugins/tweak.cpp +++ b/plugins/tweak.cpp @@ -251,10 +251,16 @@ struct stable_cursor_hook : df::viewscreen_dwarfmodest // Force update of ui state set tmp; - tmp.insert(interface_key::CURSOR_DOWN_Z); + if (last_cursor.z < 2) + tmp.insert(interface_key::CURSOR_UP_Z); + else + tmp.insert(interface_key::CURSOR_DOWN_Z); INTERPOSE_NEXT(feed)(&tmp); tmp.clear(); - tmp.insert(interface_key::CURSOR_UP_Z); + if (last_cursor.z < 2) + tmp.insert(interface_key::CURSOR_DOWN_Z); + else + tmp.insert(interface_key::CURSOR_UP_Z); INTERPOSE_NEXT(feed)(&tmp); } else if (!is_default && cur_cursor.isValid())