From 0ff6a77092bfc58bf36e209c91de252b88c64eb1 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 9 Mar 2010 14:18:46 +0000 Subject: リストをソートするように git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36973 d0d07461-0603-4401-acd4-de1884942a52 --- session-manager.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'session-manager.js') diff --git a/session-manager.js b/session-manager.js index 7d4c39d..98dd20c 100755 --- a/session-manager.js +++ b/session-manager.js @@ -38,7 +38,7 @@ let PLUGIN_INFO = Session Manager Session Manager for Session Manager Addon - 1.1.0 + 1.1.1 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -163,10 +163,11 @@ let INFO = return; } + context.compare = void 0; context.completions = [ [file.leafName.replace(/\.session$/, ''), new Date(file.lastModifiedTime)] for each ([,file] in io.File(gSessionManager.getSessionDir()).readDirectory()) - ] + ].sort(function ([, a], [, b]) (b - a)); } }, true -- cgit v1.2.3