diff options
| author | Stephen Blott | 2015-04-28 09:51:48 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-04-28 09:51:48 +0100 |
| commit | fe8e0898d1ed563dacb119c50f026a181f144fa2 (patch) | |
| tree | e22a57bd51587f7b9de93c476b3161d315248594 | |
| parent | c6a01401f31ffdac3ae639c48abf6d408227243e (diff) | |
| download | vimium-fe8e0898d1ed563dacb119c50f026a181f144fa2.tar.bz2 | |
Fix up #1604.
| -rw-r--r-- | background_scripts/main.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index c9e3a118..3a3392d8 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -302,9 +302,9 @@ BackgroundCommands = moveTabLeft: (count) -> moveTab(null, -count) moveTabRight: (count) -> moveTab(null, count) nextFrame: (count,frameId) -> - chrome.tabs.getSelected(null, (tab) -> + chrome.tabs.getSelected null, (tab) -> frameIdsForTab[tab.id] = cycleToFrame frameIdsForTab[tab.id], frameId, count - chrome.tabs.sendMessage(tab.id, { name: "focusFrame", frameId: frames[0], highlight: true })) + chrome.tabs.sendMessage tab.id, name: "focusFrame", frameId: frameIdsForTab[tab.id][0], highlight: true mainFrame: -> chrome.tabs.getSelected null, (tab) -> # The front end interprets a frameId of 0 to mean the main/top from. |
