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 |
ヒントモードをぶっ壊す、悪いパッチの模様
ヒントをぶっ壊すのに対処。
ただし、同様の呼び出し方をする箇所が他にあるとうまくいかないと思います。
migemized_find 対応
x-hint.js 対応
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
_libly.js 必須。 rc ファイルに書いてね。
悪影響は起こりにくいと思うけど、VImperator 本体で解決したら外すべし。