mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 13:47:59 +01:00
fixed :q command
This commit is contained in:
@@ -283,7 +283,7 @@ var g_commands = [/*{{{*/
|
|||||||
[
|
[
|
||||||
["quit", "q"],
|
["quit", "q"],
|
||||||
["q[uit]"],
|
["q[uit]"],
|
||||||
"Quit current tab or quit Vimperator if this was the last tab<br/>" +
|
"Quit current tab or quit Vimperator if this was the last tab",
|
||||||
"When quitting Vimperator, the session is not stored.",
|
"When quitting Vimperator, the session is not stored.",
|
||||||
function (args) { tab_remove(1, false, 1); },
|
function (args) { tab_remove(1, false, 1); },
|
||||||
null
|
null
|
||||||
@@ -1173,9 +1173,12 @@ function multiliner(line, prev_match, heredoc)
|
|||||||
|
|
||||||
function execute(string)
|
function execute(string)
|
||||||
{
|
{
|
||||||
if (!string) return;
|
if (!string)
|
||||||
|
return;
|
||||||
|
|
||||||
var tokens = tokenize_ex(string.replace(/^'(.*)'$/, '$1'));
|
var tokens = tokenize_ex(string.replace(/^'(.*)'$/, '$1'));
|
||||||
tokens[4] = arguments[3];
|
tokens[4] = arguments[3];
|
||||||
|
|
||||||
return execute_command.apply(this, tokens);
|
return execute_command.apply(this, tokens);
|
||||||
}
|
}
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ table.vimperator {\
|
|||||||
border-color: gray gray gray gray;\
|
border-color: gray gray gray gray;\
|
||||||
border-collapse: separate;\
|
border-collapse: separate;\
|
||||||
background-color: white;\
|
background-color: white;\
|
||||||
|
width: 800px !important;\
|
||||||
}\
|
}\
|
||||||
table.vimperator th {\
|
table.vimperator th {\
|
||||||
border-width: 0px 0px 0px 0px;\
|
border-width: 0px 0px 0px 0px;\
|
||||||
@@ -186,7 +187,7 @@ table.settings th {\
|
|||||||
function makeSettingsHelpString(command)
|
function makeSettingsHelpString(command)
|
||||||
{
|
{
|
||||||
var ret = "";
|
var ret = "";
|
||||||
ret = command[TYPE] + " (default: <code>";
|
ret = command[TYPE] + ' (default: <span style="font-family: monospace;">';
|
||||||
if (command[TYPE] == "boolean")
|
if (command[TYPE] == "boolean")
|
||||||
{
|
{
|
||||||
if(command[DEFAULT] == true)
|
if(command[DEFAULT] == true)
|
||||||
@@ -202,7 +203,7 @@ table.settings th {\
|
|||||||
ret += command[DEFAULT];
|
ret += command[DEFAULT];
|
||||||
}
|
}
|
||||||
|
|
||||||
ret += "</code>)<br/>";
|
ret += "</span>)<br/>";
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user