diff options
| author | anekos | 2011-09-01 18:23:54 +0900 | 
|---|---|---|
| committer | anekos | 2011-09-01 18:23:54 +0900 | 
| commit | 42661197a40d2bc78d1cf21f8056db88f5a14857 (patch) | |
| tree | 87c2e3cc53d78fbbcbf5002385844cb28d705456 | |
| parent | 7a7414f6085d8b37476a29852d2f0c10930c0536 (diff) | |
| download | vimperator-plugins-42661197a40d2bc78d1cf21f8056db88f5a14857.tar.bz2 | |
履歴の順で候補を出すようにした
| -rw-r--r-- | migemized_find.js | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/migemized_find.js b/migemized_find.js index 2d11f00..8adc6dd 100644 --- a/migemized_find.js +++ b/migemized_find.js @@ -39,7 +39,7 @@ let PLUGIN_INFO =    <name lang="ja">Migemized Find</name>    <description>Migemize default page search.</description>    <description lang="ja">デフォルトのドキュメント内検索をミゲマイズする。</description> -  <version>2.11.0</version> +  <version>2.11.1</version>    <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>    <license>new BSD License (Please read the source code comments of this plugin)</license>    <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -497,6 +497,7 @@ let PLUGIN_INFO =      submit: function () {        let exists = false, newHistory = []; +      newHistory.push(this.currentSearchText);        for (let [i, h] in Iterator(this.history)) {          if (h === this.currentSearchText) {            exists = true; @@ -504,7 +505,6 @@ let PLUGIN_INFO =            newHistory.push(h);          }        } -      newHistory.push(this.currentSearchText);        this.history = newHistory;        this.lastSearchText = this.currentSearchText; @@ -601,6 +601,7 @@ let PLUGIN_INFO =      },      completer: function (context, args) { +      context.compare = CompletionContext.Sort.unsorted;        context.completions = [          [v, v]          for ([, v] in Iterator(MF.history))  | 
