From dc136dc30befdc715329779ba87cffff31282165 Mon Sep 17 00:00:00 2001 From: Nelo Wallus Date: Fri, 8 Jan 2016 19:45:08 +0100 Subject: [PATCH] Allow to pass options for commands --- plugins/contrib/treestyletabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/contrib/treestyletabs.js b/plugins/contrib/treestyletabs.js index 216631d4..2e8fd870 100644 --- a/plugins/contrib/treestyletabs.js +++ b/plugins/contrib/treestyletabs.js @@ -50,8 +50,8 @@ function fold_collapse_expand_toggle(children = false) { ); } -function create_command_and_mapping(command, description, funcref, mapping) { - group.commands.add([command], description, funcref, {}, true ); +function create_command_and_mapping(command, description, funcref, mapping, command_option = {}) { + group.commands.add([command], description, funcref, command_option, true ); if (mapping != "") group.mappings.add([modes.NORMAL], [mapping], description, funcref); }