Skip to content

Commit

Permalink
🐛 Command reload index issue due to history support
Browse files Browse the repository at this point in the history
  • Loading branch information
princejwesley committed Mar 26, 2016
1 parent fa1768e commit 3c2c51f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/ReplStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const ReplStore = Reflux.createStore({
this.trigger();
},
onReloadPromptByIndex(idx, reverse = false) {
idx = cache.persistentHistorySize + idx;
let length = cache.history.length;
let pos = reverse ? length - idx : idx;
if(pos >= 0 && pos < length) {
Expand Down

0 comments on commit 3c2c51f

Please sign in to comment.