From f4a8b26a5a0bb0b793f380b90e957218249a8fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BB=A9c=20To=C3=A0n?= <33489972+ndtoan96@users.noreply.github.com> Date: Sun, 8 Oct 2023 21:11:51 +0700 Subject: [PATCH] fix: avoid adding non-regular paths to backstack (#249) --- core/src/manager/tab.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/manager/tab.rs b/core/src/manager/tab.rs index dbcada64..1aab30e1 100644 --- a/core/src/manager/tab.rs +++ b/core/src/manager/tab.rs @@ -132,7 +132,9 @@ impl Tab { } // Backstack - self.backstack.push(target.clone()); + if target.is_regular() { + self.backstack.push(target.clone()); + } emit!(Refresh); true