aboutsummaryrefslogtreecommitdiffstats
path: root/caret-hint.js
diff options
context:
space:
mode:
authoranekos2010-03-07 18:13:51 +0000
committeranekos2010-03-07 18:13:51 +0000
commitdbb844a4a872aebc568ebdb3e8280ee05c4c3851 (patch)
treefd117ed0e32374e70ef2701c35ec38ec6691f5f3 /caret-hint.js
parent0dc70635bce0d94e79ec875c24d1d5a02ac047d0 (diff)
downloadvimperator-plugins-dbb844a4a872aebc568ebdb3e8280ee05c4c3851.tar.bz2
空のマッピングを追加する事があったのを修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36960 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'caret-hint.js')
-rw-r--r--caret-hint.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/caret-hint.js b/caret-hint.js
index f4e0c76..4f2a20d 100644
--- a/caret-hint.js
+++ b/caret-hint.js
@@ -1,5 +1,5 @@
/* NEW BSD LICENSE {{{
-Copyright (c) 2009, anekos.
+Copyright (c) 2009-2010, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -38,13 +38,13 @@ let PLUGIN_INFO =
<name>Caret Hint</name>
<description>Move caret position by hint</description>
<description lang="ja">Hint を使ってキャレット位置を移動</description>
- <version>1.3.0</version>
+ <version>1.3.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>
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/caret-hint.js</updateURL>
<minVersion>2.0pre</minVersion>
- <maxVersion>2.0pre</maxVersion>
+ <maxVersion>2.3</maxVersion>
<detail><![CDATA[
Move caret position by hint.
== Global Variables ==
@@ -118,6 +118,8 @@ let PLUGIN_INFO =
[headMode, tailMode, selectHeadMode, selectTailMode].forEach(
function(mode) {
let map = extendLeader + ';' + mode;
+ if (!mode)
+ return;
mappings.remove(modes.NORMAL, map); // for debug
mappings.remove(modes.VISUAL, map); // for debug
mappings.addUserMap(