diff options
| author | Stephen Blott | 2018-08-17 14:48:14 +0100 |
|---|---|---|
| committer | Stephen Blott | 2018-08-17 14:48:14 +0100 |
| commit | a4a9c4e4625b6a5ad0622a3a84a096238969b13c (patch) | |
| tree | 5eec57492f773fc14b53fb14d1aed7cf3435cbff | |
| parent | 73dfd9f276579c28c3f93033e12f0a24e8103af6 (diff) | |
| download | vimium-a4a9c4e4625b6a5ad0622a3a84a096238969b13c.tar.bz2 | |
togglePinTab command should take a count prefix.
| -rw-r--r-- | background_scripts/commands.coffee | 2 | ||||
| -rw-r--r-- | background_scripts/main.coffee | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 0573b9c1..218753b2 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -386,7 +386,7 @@ commandDescriptions = restoreTab: ["Restore closed tab", { background: true, repeatLimit: 20 }] moveTabToNewWindow: ["Move tab to new window", { background: true }] - togglePinTab: ["Pin or unpin current tab", { background: true, noRepeat: true }] + togglePinTab: ["Pin or unpin current tab", { background: true }] toggleMuteTab: ["Mute or unmute current tab", { background: true, noRepeat: true }] closeTabsOnLeft: ["Close tabs on the left", {background: true, noRepeat: true}] diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 295c9d25..081122c0 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -216,7 +216,7 @@ BackgroundCommands = lastTab: (request) -> selectTab "last", request removeTab: ({count, tab}) -> forCountTabs count, tab, (tab) -> chrome.tabs.remove tab.id restoreTab: mkRepeatCommand (request, callback) -> chrome.sessions.restore null, callback request - togglePinTab: ({tab}) -> chrome.tabs.update tab.id, {pinned: !tab.pinned} + togglePinTab: ({count, tab}) -> forCountTabs count, tab, (tab) -> chrome.tabs.update tab.id, {pinned: !tab.pinned} toggleMuteTab: toggleMuteTab moveTabLeft: moveTab moveTabRight: moveTab |
