From b56a987600dc93b274a2d1f3d39d7b7ee17608fd Mon Sep 17 00:00:00 2001 From: Mayhem Date: Mon, 4 Nov 2013 00:05:59 +0100 Subject: [PATCH] Fix next/prev thread keybinds when encountering hidden threads with no stubs. --- src/Miscellaneous/Nav.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miscellaneous/Nav.coffee b/src/Miscellaneous/Nav.coffee index 3620080f0..59c532ec1 100644 --- a/src/Miscellaneous/Nav.coffee +++ b/src/Miscellaneous/Nav.coffee @@ -52,7 +52,7 @@ Nav = 'following' else 'preceding' - if next = $.x "#{axe}-sibling::div[contains(@class,'thread')][1]", thread + if next = $.x "#{axe}-sibling::div[contains(@class,'thread') and not(@hidden)][1]", thread # Unless we're not at the beginning of the current thread, # and thus wanting to move to beginning, # or we're above the first thread and don't want to skip it.