Changeset 27063

Show
Ignore:
Timestamp:
12/19/08 16:09:22 (4 years ago)
Author:
hogelog
Message:
  • show correct statusline.
  • remove commentout code.
Files:
1 modified

Legend:

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

    r27050 r27063  
    2525 
    2626== TODO == 
    27  * support hinttimeout. 
    2827     ]]></detail> 
    2928    <detail lang="ja"><![CDATA[ 
     
    4342 
    4443== TODO == 
    45  * support hinttimeout. 
    4644     ]]></detail> 
    4745</VimperatorPlugin>; 
     
    163161            let hintString = commandline.command; 
    164162            commandline.command = hintString.replace(inputRegex, ""); 
    165             //commandline.command = hintString.replace(/[A-Z]+/g, ""); 
    166163            charhints.original.onInput(event); 
    167164            showCharHints(); 
    168165            for(let i=0,l=hintString.length;i<l;++i) { 
    169                 //if(/^[A-Z]$/.test(hintString[i])) {} 
    170166                if(inputRegex.test(hintString[i])) { 
    171167                    hintChars.push(hintString[i]); 
     
    173169            } 
    174170            if(hintChars.length>0) { 
    175                 let numstr = String(chars2num(hintChars.join(""))); 
     171                let hintinput = hintChars.join(""); 
     172                let numstr = String(chars2num(hintinput)); 
    176173                // no setTimeout, don't run nice 
    177174                setTimeout(function () { 
     
    182179                        charhints.original.onEvent(alt); 
    183180                    } 
     181                    statusline.updateInputBuffer(hintinput); 
    184182                }, 10); 
    185183            } 
     
    191189            } else { 
    192190                charhints.original.onEvent(event); 
     191                statusline.updateInputBuffer(hintinput); 
    193192            } 
    194193        }, //}}}