Changeset 28284

Show
Ignore:
Timestamp:
01/11/09 02:20:50 (4 years ago)
Author:
pekepeke
Message:

補完時のラベル修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/exopen.js

    r28275 r28284  
    164164    registerCommand: function(){ 
    165165      var self = this; 
    166       commands.addUserCommand(['exopen'], 'Open byextension url',  
     166      commands.addUserCommand(['exopen'], 'Open byextension url', 
    167167        function(args) self.open(args.string, args.bang), { 
    168168          completer: function(context, args) { 
    169             context.title = ['Template', 'Value']; 
     169            context.title = ['Template', 'Description - Value']; 
    170170            if (!context.filter) { 
    171171              context.completions = self.completer; 
     
    187187      var template = this.find(arg) || {value: arg}; 
    188188      if (typeof template.custom == 'function') { 
    189         url = replacer(template.custom.call(this, template.value), template.escape); 
     189        url = template.custom.call(this, template.value); 
    190190      } else if (template.custom instanceof Array){ 
    191191        url = replacer(template.value).replace(template.custom[0], template.custom[1], template.escape); 
     
    193193        url = replacer(template.value, template.escape); 
    194194      } 
     195      if (!url) return; 
    195196      if (template.newtab) openTabOrSwitch(url); 
    196197      else liberator.open(url);