diff options
author | anekos | 2015-09-30 23:35:37 +0900 |
---|---|---|
committer | anekos | 2015-09-30 23:35:37 +0900 |
commit | 827f6d6f54de9199f45d1f138d5725cb84131ab8 (patch) | |
tree | 203beb776c5de780d563bb2f6a120aa4f4ce84bb /multi-exec.js | |
parent | de561f4b9cc35ff2cdcf63fdac2d243c0becd7eb (diff) | |
download | vimperator-plugins-827f6d6f54de9199f45d1f138d5725cb84131ab8.tar.bz2 |
Unlets
Diffstat (limited to 'multi-exec.js')
-rw-r--r-- | multi-exec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/multi-exec.js b/multi-exec.js index cb93311..7b7100f 100644 --- a/multi-exec.js +++ b/multi-exec.js @@ -80,8 +80,9 @@ let PLUGIN_INFO = xml` 'Multiple ex', function (args) { let [sep, body] = ['|', args.string]; - let (m = body.match(/^(\S)\s+(.*)$/)) - m && ([sep, body] = [m[1], m[2]]); + let m = body.match(/^(\S)\s+(.*)$/); + if (m) + [sep, body] = [m[1], m[2]]; body.split(sep) .map(function (it) it.replace(/^\s+/, '')) .forEach(liberator.execute, liberator); |