mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-03 14:35:46 +01:00
rename local function gotoHistoryItem to loadHistoryItem
This commit is contained in:
@@ -764,7 +764,7 @@ function CommandLine() //{{{
|
|||||||
// user pressed UP or DOWN arrow to cycle history completion
|
// user pressed UP or DOWN arrow to cycle history completion
|
||||||
else if (/^(<Up>|<Down>|<S-Up>|<S-Down>|<PageUp>|<PageDown>)$/.test(key))
|
else if (/^(<Up>|<Down>|<S-Up>|<S-Down>|<PageUp>|<PageDown>)$/.test(key))
|
||||||
{
|
{
|
||||||
function gotoHistoryItem(index)
|
function loadHistoryItem(index)
|
||||||
{
|
{
|
||||||
setCommand(inputHistory.get(historyIndex));
|
setCommand(inputHistory.get(historyIndex));
|
||||||
liberator.triggerCallback("change", currentExtendedMode, commandline.getCommand());
|
liberator.triggerCallback("change", currentExtendedMode, commandline.getCommand());
|
||||||
@@ -818,13 +818,13 @@ function CommandLine() //{{{
|
|||||||
{
|
{
|
||||||
if (inputHistory.get(historyIndex).indexOf(historyStart) == 0)
|
if (inputHistory.get(historyIndex).indexOf(historyStart) == 0)
|
||||||
{
|
{
|
||||||
gotoHistoryItem(historyIndex);
|
loadHistoryItem(historyIndex);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gotoHistoryItem(historyIndex);
|
loadHistoryItem(historyIndex);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user