|
@@ -39,10 +39,10 @@ std::string KillRingManager::previous() {
|
|
|
return "";
|
|
return "";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // Rotate the ring: move front to back
|
|
|
|
|
- std::string front_item = ring_.front();
|
|
|
|
|
- ring_.pop_front();
|
|
|
|
|
- ring_.push_back(front_item);
|
|
|
|
|
|
|
+ // Rotate the ring: move back to front (conceptual 'previous')
|
|
|
|
|
+ std::string back_item = ring_.back();
|
|
|
|
|
+ ring_.pop_back();
|
|
|
|
|
+ ring_.push_front(back_item);
|
|
|
|
|
|
|
|
last_action_was_kill_ = false; // Reset state for push logic
|
|
last_action_was_kill_ = false; // Reset state for push logic
|
|
|
return ring_.front();
|
|
return ring_.front();
|