1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 00:27:57 +01:00

add ZQ mapping only when extension has the "session" feature

This commit is contained in:
Martin Stubenschrott
2008-03-04 11:29:26 +00:00
parent 98f6813d63
commit b75dff68d3

View File

@@ -105,9 +105,12 @@ const vimperator = (function () //{{{
"Open help window",
function () { vimperator.help(); });
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZQ"],
"Quit and don't save the session",
function () { vimperator.quit(false); });
if (vimperator.has("session"))
{
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZQ"],
"Quit and don't save the session",
function () { vimperator.quit(false); });
}
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZZ"],
"Quit and save the session",