mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 05:57:58 +01:00
Fix :noremap
This commit is contained in:
@@ -762,10 +762,11 @@ lookup:
|
|||||||
// no need (actually forbidden) to add: js <<EOF ... EOF around those files
|
// no need (actually forbidden) to add: js <<EOF ... EOF around those files
|
||||||
source: function (filename, silent)
|
source: function (filename, silent)
|
||||||
{
|
{
|
||||||
|
var wasSourcing = ioManager.sourcing;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var file = ioManager.getFile(filename);
|
var file = ioManager.getFile(filename);
|
||||||
this.sourcing = {
|
ioManager.sourcing = {
|
||||||
file: file.path,
|
file: file.path,
|
||||||
line: 0
|
line: 0
|
||||||
};
|
};
|
||||||
@@ -832,7 +833,7 @@ lookup:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.sourcing.line = i + 1;
|
ioManager.sourcing.line = i + 1;
|
||||||
// skip line comments and blank lines
|
// skip line comments and blank lines
|
||||||
if (/^\s*(".*)?$/.test(line))
|
if (/^\s*(".*)?$/.test(line))
|
||||||
continue;
|
continue;
|
||||||
@@ -908,7 +909,7 @@ lookup:
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
this.sourcing = null;
|
ioManager.sourcing = wasSourcing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}; //}}}
|
}; //}}}
|
||||||
|
|||||||
@@ -218,7 +218,8 @@ function Mappings() //{{{
|
|||||||
|
|
||||||
commands.add([ch + "no[remap]"],
|
commands.add([ch + "no[remap]"],
|
||||||
"Map a key sequence without remapping keys" + modeDescription,
|
"Map a key sequence without remapping keys" + modeDescription,
|
||||||
function (args) { map(args, modes, true); });
|
function (args) { map(args, modes, true); },
|
||||||
|
opts);
|
||||||
|
|
||||||
commands.add([ch + "mapc[lear]"],
|
commands.add([ch + "mapc[lear]"],
|
||||||
"Remove all mappings" + modeDescription,
|
"Remove all mappings" + modeDescription,
|
||||||
|
|||||||
Reference in New Issue
Block a user