Commit 47beca83 authored by Matthew Burket's avatar Matthew Burket
Browse files

fix history cmd

parent b9bbc6c2
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ int main() {
                    continue;
                }
                for (int k = historyPos; k >= 0; k--) {
                    fprintf(stdout, "%2d %s\n", k + 1, historyBuff[i]);
                    fprintf(stdout, "%2d %s\n", k + 1, historyBuff[k]);
                }
                storeHist(tokens, &historyPos, historyBuff, numTokens);
                free(tokens);