aboutsummaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-25 21:14:52 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-25 21:14:52 +0900
commitc2a5a41cb6bc7780db580e6325e25b6a81729851 (patch)
treecd8731edaf3f432e166739cddd6a4112a5ca2083 /src/actions
parent2b6aca17b04f687f5a52fe930fdd0b0b45f62d23 (diff)
parent1a21e548d924514e7b23add22e9ecd4fb071ea84 (diff)
Merge branch 'some-fix'
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/operation.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/actions/operation.js b/src/actions/operation.js
index b0d67f0..50329f8 100644
--- a/src/actions/operation.js
+++ b/src/actions/operation.js
@@ -25,11 +25,17 @@ const exec = (operation, tab) => {
case operations.COMMAND_OPEN:
return consoleActions.showCommand('');
case operations.COMMAND_TABS_OPEN:
- if (operations.alter) {
+ if (operation.alter) {
// alter url
return consoleActions.showCommand('open ' + tab.url);
}
return consoleActions.showCommand('open ');
+ case operations.COMMAND_TABS_NEW:
+ if (operation.alter) {
+ // alter url
+ return consoleActions.showCommand('tabopen ' + tab.url);
+ }
+ return consoleActions.showCommand('tabopen ');
case operations.COMMAND_BUFFER:
return consoleActions.showCommand('buffer ');
default: