Skip to content

Instantly share code, notes, and snippets.

@anekos
Created July 4, 2011 22:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anekos/1064025 to your computer and use it in GitHub Desktop.
Save anekos/1064025 to your computer and use it in GitHub Desktop.
Vimperator のコマンドラインバグをもんやり修正するパッチ
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
@anekos
Copy link
Author

anekos commented Jul 4, 2011

_libly.js 必須。 rc ファイルに書いてね。

悪影響は起こりにくいと思うけど、VImperator 本体で解決したら外すべし。

@anekos
Copy link
Author

anekos commented Jul 5, 2011

ヒントモードをぶっ壊す、悪いパッチの模様

@anekos
Copy link
Author

anekos commented Jul 27, 2011

ヒントをぶっ壊すのに対処。
ただし、同様の呼び出し方をする箇所が他にあるとうまくいかないと思います。

@anekos
Copy link
Author

anekos commented Jul 27, 2011

migemized_find 対応

@anekos
Copy link
Author

anekos commented Jul 27, 2011

x-hint.js 対応

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment