1
0
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:
Doug Kearns
2008-11-01 02:55:21 +00:00
parent 4efae05d03
commit 47f753d72c

View File

@@ -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;
} }
} }