mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 12:14:41 +08:00

If, for some reasons, navigating between posts using j/k keyboard shortcuts does not select any posts, there could be an infinite loop due to setting the `direction` to `0` and then using it do "iterate" over the arrays of available "articles". Despite many attemps, I wasn't able to reproduce the issue reported in https://dev.discourse.org/t/145565 so this is somewhat of a shot in the dark.