Permalink
Browse files

inverse search history candidates

  • Loading branch information...
1 parent 74f2616 commit afcee76c09b23ec4d8661ea4ed792ce2e728130e @k2nr committed Nov 16, 2012
Showing with 5 additions and 2 deletions.
  1. +2 −1 coffee/commandbox.coffee
  2. +3 −1 commandbox.js
@@ -488,7 +488,8 @@ class g.CandSourceSearchHist extends g.CandidateSource
chrome.extension.sendRequest(
command : "GetSearchHistory"
, (msg) =>
- @history = msg.value.reverse()
+ len = msg.value.length
+ @history = msg.value.slice(len - @maxItems, len)
@onInput("")
)
View
Oops, something went wrong.

0 comments on commit afcee76

Please sign in to comment.