mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 12:05:45 +01:00
Fix :map <silent> in :mkv
This commit is contained in:
@@ -45,6 +45,7 @@ function Map(modes, cmds, description, action, extraInfo) //{{{
|
|||||||
this.description = description || "";
|
this.description = description || "";
|
||||||
this.rhs = extraInfo.rhs || null;
|
this.rhs = extraInfo.rhs || null;
|
||||||
this.noremap = extraInfo.noremap || false;
|
this.noremap = extraInfo.noremap || false;
|
||||||
|
this.silent = extraInfo.silent || false;
|
||||||
};
|
};
|
||||||
|
|
||||||
Map.prototype = {
|
Map.prototype = {
|
||||||
@@ -165,11 +166,12 @@ function Mappings() //{{{
|
|||||||
{
|
{
|
||||||
mappings.addUserMap([m], [lhs],
|
mappings.addUserMap([m], [lhs],
|
||||||
"User defined mapping",
|
"User defined mapping",
|
||||||
function (count) { events.feedkeys((count > 1 ? count : "") + rhs, noremap, "<silent>" in args); },
|
function (count) { events.feedkeys((count > 1 ? count : "") + this.rhs, this.noremap, this.silent); },
|
||||||
{
|
{
|
||||||
flags: Mappings.flags.COUNT,
|
flags: Mappings.flags.COUNT,
|
||||||
rhs: rhs,
|
rhs: rhs,
|
||||||
noremap: noremap,
|
noremap: noremap,
|
||||||
|
silent: "<silent>" in args
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user