From e097b79a0dd4210ff9459517487b7920b66246e8 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sun, 6 Jan 2008 16:37:49 +0000 Subject: [PATCH] made followDocRelship work better --- content/buffers.js | 14 +++++++++----- locale/en-US/motion.txt | 2 ++ 2 files changed, 11 insertions(+), 5 deletions(-) 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 ~~~~~~~~~~~~~~~~~~~~~~~