Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@anekos anekos commented Jul 4, 2011

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

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

@anekos

This comment has been minimized.

Copy link
Owner Author

@anekos anekos commented Jul 5, 2011

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

@anekos

This comment has been minimized.

Copy link
Owner Author

@anekos anekos commented Jul 27, 2011

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

@anekos

This comment has been minimized.

Copy link
Owner Author

@anekos anekos commented Jul 27, 2011

migemized_find 対応

@anekos

This comment has been minimized.

Copy link
Owner Author

@anekos 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