Patched wordwrap JS error on startup

This commit is contained in:
MikeRatcliffe 2011-02-04 08:03:44 +08:00 committed by Fabian Jakobs
commit 3da587e6e3

View file

@ -856,7 +856,7 @@ var EditSession = function(text, mode) {
this.getRowHeight = function(config, row) {
var rows;
if (!this.$useWrapMode) {
if (!this.$useWrapMode || !this.$wrapData[row]) {
rows = 1;
} else {
rows = this.$wrapData[row].length + 1;