Created
July 4, 2011 22:44
-
-
Save anekos/1064025 to your computer and use it in GitHub Desktop.
Vimperator のコマンドラインバグをもんやり修正するパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
js <<EOM | |
liberator.registerObserver( | |
'enter', | |
function () { | |
plugins.libly.$U.around( | |
commandline, | |
'input', | |
function (next, [prompt, callback, extra]) { | |
if (callback === finder.closure.onSubmit) | |
return next(); | |
if (extra && (extra.onChange === hints.closure._onInput)) | |
return next(); | |
setTimeout(function () next(), 0); | |
} | |
); | |
if (plugins.xHint) { | |
[commands.get('xhint'), commands.get('xhintdo')].forEach(function (cmd) { | |
plugins.libly.$U.around( | |
cmd, | |
'action', | |
function (next) setTimeout(function () next(), 0) | |
); | |
}); | |
} | |
} | |
); | |
EOM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
x-hint.js 対応