mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 16:17:59 +01:00
Fix some :zoom issues.
This commit is contained in:
@@ -981,7 +981,12 @@ const Buffer = Module("buffer", {
|
|||||||
|
|
||||||
if (fullZoom !== undefined)
|
if (fullZoom !== undefined)
|
||||||
ZoomManager.useFullZoom = fullZoom;
|
ZoomManager.useFullZoom = fullZoom;
|
||||||
ZoomManager.zoom = value / 100;
|
try {
|
||||||
|
ZoomManager.zoom = value / 100;
|
||||||
|
}
|
||||||
|
catch (e if e == Cr.NS_ERROR_ILLEGAL_VALUE) {
|
||||||
|
return dactyl.echoerr("Illegal value");
|
||||||
|
}
|
||||||
|
|
||||||
if ("FullZoom" in window)
|
if ("FullZoom" in window)
|
||||||
FullZoom._applySettingToPref();
|
FullZoom._applySettingToPref();
|
||||||
@@ -1283,10 +1288,7 @@ const Buffer = Module("buffer", {
|
|||||||
else
|
else
|
||||||
dactyl.assert(false, "E488: Trailing characters");
|
dactyl.assert(false, "E488: Trailing characters");
|
||||||
|
|
||||||
if (args.bang)
|
Buffer.setZoom(level, args.bang);
|
||||||
buffer.fullZoom = level;
|
|
||||||
else
|
|
||||||
buffer.textZoom = level;
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
argCount: "?",
|
argCount: "?",
|
||||||
|
|||||||
Reference in New Issue
Block a user