Changeset 27140

Show
Ignore:
Timestamp:
12/21/08 14:25:14 (4 years ago)
Author:
hogelog
Message:
  • fix: process hint if only one valid hint.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/char-hints-mod2.js

    r27067 r27140  
    148148    function isValidHint(hint) //{{{ 
    149149    { 
     150        if(hintInput.length == 0 ) return false; 
    150151        return inputCase(hint).indexOf(hintInput) == 0; 
    151152    } //}}} 
     
    169170            commandline.command = hintString.replace(inputRegex, ""); 
    170171            charhints.original.onInput(event); 
    171             showCharHints(); 
    172172            for(let i=0,l=hintString.length;i<l;++i) { 
    173173                if(inputRegex.test(hintString[i])) { 
     
    175175                } 
    176176            } 
     177            showCharHints(); 
    177178            if(hintInput.length>0) { 
    178179                let numstr = String(chars2num(hintInput));