From 9f691e05aae8b0ad1c4f3fe559b0f2f2c9559ea2 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 27 Aug 2009 12:37:51 +0000 Subject: Follow HEAD for http://vimperator.org/trac/gitweb/?p=liberator.git;a=commit;h=f20c2b315bb05c2e88d0c672f07dc229cc9267d2 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35099 d0d07461-0603-4401-acd4-de1884942a52 --- lo.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lo.js') diff --git a/lo.js b/lo.js index d91d742..6860410 100644 --- a/lo.js +++ b/lo.js @@ -79,8 +79,8 @@ commands.addUserCommand( ['fo[pen]', 'filteropen'], 'Filtered open', - function (args, bang) { - let where = charToWhere(args['-where'], bang ? liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB); + function (args) { + let where = charToWhere(args['-where'], args.bang ? liberator.NEW_TAB : liberator.NEW_BACKGROUND_TAB); let [i, links] = [1, filteredLinks(args.join(''))]; if (!links.length) return; @@ -105,7 +105,7 @@ [['-interval', '-i'], commands.OPTION_INT], [['-where', '-w'], commands.OPTION_STRING], ], - completer: function (context, arg, bang) { + completer: function (context, arg) { context.title = ['URL', 'Text Content']; context.completions = filteredLinks(context.filter).map(function (it) ([it.href, it.textContent])); }, @@ -131,8 +131,8 @@ commands.addUserCommand( ['lo[pen]', 'linkopen'], 'Filtered open', - function (args, bang) { - let where = charToWhere(args['-where'], bang ? liberator.NEW_TAB : liberator.CURRENT_TAB); + function (args) { + let where = charToWhere(args['-where'], args.bang ? liberator.NEW_TAB : liberator.CURRENT_TAB); let numUrl = args[0]; let m = numUrl.match(/^(\d+),(.+)$/); if (m) { -- cgit v1.2.3