From deda967d95ee3f13007377f460a734dba922e0d1 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 15 Feb 2025 19:58:45 +0200 Subject: [PATCH] change comment position --- src/app/browser/window/tab/item/action/history/memory.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/action/history/memory.rs b/src/app/browser/window/tab/item/action/history/memory.rs index f92e9a4e..ff76ab7a 100644 --- a/src/app/browser/window/tab/item/action/history/memory.rs +++ b/src/app/browser/window/tab/item/action/history/memory.rs @@ -34,10 +34,10 @@ impl Memory { } } - // prevent duplicates at the last history position - // e.g. on page reload with `follow_to_index` enabled match index.last() { Some(last) => { + // prevent duplicates at the last history position + // e.g. on page reload with `follow_to_index` enabled if *last != value { index.push(value); }