Skip to content

Commit

Permalink
fix #1256
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jan 15, 2017
1 parent adb980d commit 576a074
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Editor {
formatLine(index, length, formats = {}) {
this.scroll.update();
Object.keys(formats).forEach((format) => {
if (this.scroll.whitelist != null && !this.scroll.whitelist[format]) return;
let lines = this.scroll.lines(index, Math.max(length, 1));
let lengthRemaining = length;
lines.forEach((line) => {
Expand Down

0 comments on commit 576a074

Please sign in to comment.