Permalink
Browse files

bug fixed(#12), version updated to 0.5.0

  • Loading branch information...
1 parent 30a33cf commit 10e4bb5296a818332f30b355d3ba94dcf000d573 @k2nr committed Oct 14, 2011
Showing with 6 additions and 4 deletions.
  1. +2 −1 background.js
  2. +1 −0 coffee/background.coffee
  3. +1 −1 coffee/command.coffee
  4. +1 −1 command.js
  5. +1 −1 manifest.json
View
3 background.js
@@ -218,7 +218,8 @@
command: "GetSearchHistory",
value: history
};
- return sendResponse(msg);
+ sendResponse(msg);
+ return true;
},
reqGetBookmark: function(req, sendResponse) {
chrome.bookmarks.search(req.value, function(nodes) {
View
1 coffee/background.coffee
@@ -142,6 +142,7 @@ g.bg =
value : history
sendResponse msg
+ true
reqGetBookmark : (req, sendResponse) ->
chrome.bookmarks.search(req.value, (nodes) -> sendResponse(nodes))
View
2 coffee/command.coffee
@@ -115,7 +115,7 @@ class g.CommandManager
@timerId = setTimeout( callback, ms )
queue : (s) ->
- if s.search(/[0-9]/) >= 0 and @a.length == 0
+ if s.length == 1 and s.search(/[0-9]/) >= 0 and @a.length == 0
@times += s
else
@a += s
View
2 command.js
@@ -134,7 +134,7 @@
return this.timerId = setTimeout(callback, ms);
},
queue: function(s) {
- if (s.search(/[0-9]/) >= 0 && this.a.length === 0) {
+ if (s.length === 1 && s.search(/[0-9]/) >= 0 && this.a.length === 0) {
this.times += s;
} else {
this.a += s;
View
2 manifest.json
@@ -1,6 +1,6 @@
{
"name": "Vichrome",
- "version": "0.4.2",
+ "version": "0.5.0",
"description": "vi like interface for Google Chrome™. For every Google Chrome™ user who hate using a mouse.",
"background_page": "background.html",
"options_page": "options.html",

0 comments on commit 10e4bb5

Please sign in to comment.