diff options
author | secondlife | 2009-02-21 01:21:44 +0000 |
---|---|---|
committer | secondlife | 2009-02-21 01:21:44 +0000 |
commit | 77382ad8b9417c4e1b546f4f9ef1ce9243d5dfd5 (patch) | |
tree | 88e5853aaf5e6b433b20388a2717346fb73c5101 /history-search-backward.js | |
parent | 0b901855cd596445b9e5f86d911e415a2c76847f (diff) | |
download | vimperator-plugins-77382ad8b9417c4e1b546f4f9ef1ce9243d5dfd5.tar.bz2 |
キャッシュするように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@30402 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'history-search-backward.js')
-rw-r--r-- | history-search-backward.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/history-search-backward.js b/history-search-backward.js index b7f863e..4444812 100644 --- a/history-search-backward.js +++ b/history-search-backward.js @@ -64,6 +64,9 @@ liberator.globalVariables.history_search_backward_map = ['<C-r>']; } let command = commandline.command || ''; + let completionsList = [[key, i] for ([i, key] in storage['history-command'])]. + filter(function([key, i]) key).reverse(); + commandline.input('bck-i-search: ', function(str) { try { liberator.echo(liberator.execute(str)); @@ -73,8 +76,7 @@ liberator.globalVariables.history_search_backward_map = ['<C-r>']; }, { completer: function(context) { context.title = ['CommandLine History', 'INDEX']; - context.completions = [[key, i] for ([i, key] in storage['history-command'])]. - filter(function([key, i]) key).reverse(); + context.completions = completionsList; }, onChange: function() { showCompletions(); |