diff --git a/Userland/Applications/Help/History.cpp b/Userland/Applications/Help/History.cpp index 6cd73ea863a..d3354255d28 100644 --- a/Userland/Applications/Help/History.cpp +++ b/Userland/Applications/Help/History.cpp @@ -8,6 +8,9 @@ void History::push(const StringView& history_item) { + if (!m_items.is_empty() && m_items[m_current_history_item] == history_item) + return; + m_items.shrink(m_current_history_item + 1); m_items.append(history_item); m_current_history_item++;