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.