]> git.sesse.net Git - remoteglot-book/commitdiff
Add back a line that was inadvertedly removed.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Dec 2014 23:45:47 +0000 (00:45 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 13 Dec 2014 23:45:47 +0000 (00:45 +0100)
www/js/book.js

index 2c5af12dc09f22530f67d0479329584e0fc66ed4..9a2456ee6c081ca911681a2bb40f8c3b3555a2ec 100644 (file)
@@ -234,6 +234,7 @@ var make_move = function(move) {
                // User effectively only moved forward in history.
                ++move_override;
        } else {
+               history.length = move_override;
                history.push(move);
                move_override = history.length;
        }