diff --git a/content/buffers.js b/content/buffers.js index 70f4ce9c..b3092c5f 100644 --- a/content/buffers.js +++ b/content/buffers.js @@ -992,14 +992,18 @@ vimperator.Buffer = function () //{{{ followDocumentRelationship: function (relationship) { var retVal; - if (window.content.frames.length != 0) { - for (var i = 0; i < window.content.frames.length; i++) + retVal = followFrameRelationship(relationship, window.content); + if (!retVal) { - retVal = followFrameRelationship(relationship, window.content.frames[i]); - if (retVal) - break; + // only loop through frames if the main content didnt match + for (var i = 0; i < window.content.frames.length; i++) + { + retVal = followFrameRelationship(relationship, window.content.frames[i]); + if (retVal) + break; + } } } else diff --git a/locale/en-US/motion.txt b/locale/en-US/motion.txt index d5d29b81..6263f4fc 100644 --- a/locale/en-US/motion.txt +++ b/locale/en-US/motion.txt @@ -59,6 +59,8 @@ Option Description -R 'GROUP' Disables access to 'GROUP'. --------------------------------------------- +atag:anchor[] + [[X1]] Sub-section with Anchor ~~~~~~~~~~~~~~~~~~~~~~~