mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 10:05:45 +01:00
Fix completion.charset issue.
This commit is contained in:
@@ -811,7 +811,14 @@ unlet s:cpo_save
|
|||||||
context.anchored = false;
|
context.anchored = false;
|
||||||
context.keys = {
|
context.keys = {
|
||||||
text: util.identity,
|
text: util.identity,
|
||||||
description: services.charset.getCharsetTitle
|
description: function (charset) {
|
||||||
|
try {
|
||||||
|
return services.charset.getCharsetTitle(charset);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
return charset;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
context.generate = function () iter(services.charset.getDecoderList());
|
context.generate = function () iter(services.charset.getDecoderList());
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user